polkit/

directory
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT, MIT

README

lys-polkit

lys-polkit

The polkit authentication agent of lys.

Documentation

lys-polkit registers with polkitd as the session's authentication agent. When a program requests an action that needs authentication (pkexec, a settings panel, a package manager), lys-polkit runs the PAM conversation through polkit's agent helper and shows it in lys-shell's authentication dialog.

Install

With home-manager:

{
  inputs.lys.url = "github:stubbedev/lys";

  # in the home-manager configuration
  imports = [inputs.lys.homeModules.lys-polkit];
  services.lys-polkit.enable = true;
  services.hyprpolkitagent.enable = false; # one agent per session
}

The manual's install section covers the packages; Install the rest.

Usage

It runs as a systemd user service with the graphical session and needs polkitd, systemd-logind and lys-shell.

systemctl --user status lys-polkit
pkexec --disable-internal-agent true   # opens the dialog
lys-polkit revoke                      # drop retained admin authorizations, like sudo -k

Directories

Path Synopsis
cmd
lys-polkit command
Command lys-polkit is the lys desktop's polkit authentication agent.
Command lys-polkit is the lys desktop's polkit authentication agent.
internal
agent
Package agent answers polkitd's BeginAuthentication and CancelAuthentication: one request at a time, first in first out, each a PAM conversation through polkit's helper shown in the shell's authentication dialog.
Package agent answers polkitd's BeginAuthentication and CancelAuthentication: one request at a time, first in first out, each a PAM conversation through polkit's helper shown in the shell's authentication dialog.
helper
Package helper runs one PAM conversation through polkit's agent helper, polkit-agent-helper-1, over its socket or as the setuid program, and reports each step as a typed Event.
Package helper runs one PAM conversation through polkit's agent helper, polkit-agent-helper-1, over its socket or as the setuid program, and reports each step as a typed Event.
helper/helpertest
Package helpertest is a fake polkit-agent-helper-1 for tests: the test binary itself, run under a name that picks a scenario, speaking the helper's protocol on stdin and stdout as the setuid program or, accepted on a socket, as the socket-activated service.
Package helpertest is a fake polkit-agent-helper-1 for tests: the test binary itself, run under a name that picks a scenario, speaking the helper's protocol on stdin and stdout as the setuid program or, accepted on a socket, as the socket-activated service.
passwd
Package passwd resolves users through the system's name service with getent, so every source nsswitch.conf names answers without cgo.
Package passwd resolves users through the system's name service with getent, so every source nsswitch.conf names answers without cgo.
polkit
Package polkit is lys-polkit's side of polkitd's D-Bus API: the AuthenticationAgent interface it exports, kept registered with the Authority for the session across polkitd restarts.
Package polkit is lys-polkit's side of polkitd's D-Bus API: the AuthenticationAgent interface it exports, kept registered with the Authority for the session across polkitd restarts.
vmtest/fakedialogs command
Command fakedialogs stands in for lys-shell's dialogs in the NixOS VM test: it serves dev.stubbe.lys.PortalDialogs1 on the session bus and answers each authentication's prompts from a script, one line per prompt ("answer <text>" or "cancel"), logging every call except the answers.
Command fakedialogs stands in for lys-shell's dialogs in the NixOS VM test: it serves dev.stubbe.lys.PortalDialogs1 on the session bus and answers each authentication's prompts from a script, one line per prompt ("answer <text>" or "cancel"), logging every call except the answers.
Package retained is lys-polkit's session-bus contract for the admin authorizations polkitd retains after an auth_admin_keep action: the TemporaryAuthorizations property of dev.stubbe.lys.Polkit1, its PropertiesChanged, and RevokeAll and Revoke.
Package retained is lys-polkit's session-bus contract for the admin authorizations polkitd retains after an auth_admin_keep action: the TemporaryAuthorizations property of dev.stubbe.lys.Polkit1, its PropertiesChanged, and RevokeAll and Revoke.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL