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>
This commit is contained in:
1 parent
2752b81e36
commit
738928352e
3 files changed
+59
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# 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
|
||||
Reference in new issue
Block a user