Files
Linux-Hello/dist/linux-hello.service
2026-01-02 19:08:56 +01:00

41 lines
857 B
Desktop File

[Unit]
Description=Linux Hello Face Authentication Daemon
Documentation=https://github.com/linux-hello/linux-hello
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/libexec/linux-hello-daemon
Restart=on-failure
RestartSec=5
# Security hardening
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=read-only
PrivateTmp=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
MemoryDenyWriteExecute=false
LockPersonality=true
# Allow access to required devices
DeviceAllow=/dev/video* rw
DeviceAllow=/dev/tpm* rw
DeviceAllow=/dev/tpmrm* rw
# Allow network for D-Bus
RestrictAddressFamilies=AF_UNIX
# State directory
StateDirectory=linux-hello
RuntimeDirectory=linux-hello
ConfigurationDirectory=linux-hello
[Install]
WantedBy=multi-user.target