phosphor-service-polkit

PolicyKit authentication agent for the session.

A PolicyKit authentication agent built on polkit-qt6. When an application requests a privileged action, polkitd calls into the registered session agent and this library drives the PAM conversation that authenticates the user. Registration is opt-in, since becoming the agent intercepts every authentication. It surfaces the active request and a respond or cancel path, passing the user's response straight through to PAM without retaining it, so a shell renders the dialog.

Full API →

Key types

PolkitAgent
Registers as the session auth agent and surfaces the active request plus respond/cancel.
AuthRequest
One decoded request (action, message, icon, details, identities, selected identity).

Dependencies

See also

References