| 1 |
[Unit] |
| 2 |
Description=Fingerprint Authentication Daemon |
| 3 |
Documentation=man:fprintd(1) |
| 4 |
|
| 5 |
[Service] |
| 6 |
Type=dbus |
| 7 |
BusName=net.reactivated.Fprint |
| 8 |
ExecStart=@libexecdir@/fprintd |
| 9 |
|
| 10 |
# Filesystem lockdown |
| 11 |
ProtectSystem=strict |
| 12 |
ProtectKernelTunables=true |
| 13 |
ProtectKernelLogs=true |
| 14 |
ProtectControlGroups=true |
| 15 |
# This always corresponds to /var/lib/fprint |
| 16 |
StateDirectory=fprint |
| 17 |
StateDirectoryMode=0700 |
| 18 |
ProtectHome=true |
| 19 |
PrivateTmp=true |
| 20 |
|
| 21 |
SystemCallFilter=@system-service |
| 22 |
|
| 23 |
# Network |
| 24 |
RestrictAddressFamilies=AF_UNIX AF_LOCAL AF_NETLINK |
| 25 |
|
| 26 |
# Execute Mappings |
| 27 |
MemoryDenyWriteExecute=true |
| 28 |
|
| 29 |
# Modules |
| 30 |
ProtectKernelModules=true |
| 31 |
|
| 32 |
# Real-time |
| 33 |
RestrictRealtime=true |
| 34 |
|
| 35 |
# Privilege escalation |
| 36 |
NoNewPrivileges=true |
| 37 |
|
| 38 |
# Protect clock, allow USB and SPI device access |
| 39 |
ProtectClock=yes |
| 40 |
DeviceAllow=char-usb_device rw |
| 41 |
DeviceAllow=char-spi rw |
| 42 |
DeviceAllow=char-hidraw rw |
| 43 |
DeviceAllow=/dev/cros_fp rw |
| 44 |
|
| 45 |
# Allow tuning USB parameters (wakeup and persist) |
| 46 |
ReadWritePaths=/sys/devices |