CI / test (push) Canceled after 28m1s
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>
14 lines
588 B
Plaintext
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
|