Skip to content

Polkit 127 Compatibility

Scott edited this page Nov 22, 2026 · 3 revisions

Note

NixOS users should see NixOS — the NixOS module applies this compatibility drop-in automatically when security.polkit.enable is set.

The Arch Linux AUR package also installs this drop-in automatically. Manual setup is only needed for source installs or if the packaged drop-in was removed or overridden.

On polkit 127 and later, polkit-agent-helper@.service runs with PrivateDevices=yes, blocking access to camera devices and /dev/uinput.

Systemd Drop-In

Create a drop-in for polkit-agent-helper@.service:

[Service]
PrivateDevices=no
DeviceAllow=char-video4linux rw
DeviceAllow=/dev/uinput rw

Reload systemd:

sudo systemctl daemon-reload

Warning

Apply this drop-in only to polkit-agent-helper@.service; do not copy it to unrelated services.

PAM Rule and Verification

In the polkit PAM service, use workaround=native-input if Howdy should dismiss the graphical password prompt (see man pam_howdy and PAM Integration):

auth  sufficient  pam_howdy.so workaround=native-input

Test with:

pkexec true

If CLI authentication works but graphical polkit still fails, see Troubleshooting.

Clone this wiki locally