Files
chandra/face/polkit-agent-helper.conf
nandiandClaude Sonnet 5.5 738928352e
CI / test (push) Canceled after 28m1s
Face unlock: let polkit's sandboxed PAM helper open cameras
polkit 126+ runs the password dialog's PAM stack in polkit-agent-helper@.service,
whose PrivateDevices=yes leaves no cameras in /dev, so the dialog reported "no
camera" while sudo and enrolling worked. Install a drop-in that allows only V4L2
devices and keeps the capability and syscall limits PrivateDevices= added.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 22:33:44 -08:00

14 lines
588 B
Plaintext

# Installed by Chandra's face unlock (face/install.py) as
# /etc/systemd/system/polkit-agent-helper@.service.d/50-chandra-face.conf
#
# polkit runs PAM for the password dialog (run0, pkexec) in this unit. Its PrivateDevices=yes
# gives it a /dev with no cameras, so pam_chandra_face.so could never see one there.
[Service]
PrivateDevices=no
# Of the real /dev, only the standard pseudo devices and cameras can be opened.
DevicePolicy=closed
DeviceAllow=char-video4linux rw
# What PrivateDevices=yes also did, kept.
CapabilityBoundingSet=~CAP_MKNOD CAP_SYS_RAWIO
SystemCallFilter=~@raw-io