This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
forked from ublue-os/bluefin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(framework): enable fprintd service (ublue-os#326)
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[Unit] | ||
Description=Fingerprint Authentication Daemon | ||
Documentation=man:fprintd(1) | ||
|
||
[Service] | ||
Type=dbus | ||
BusName=net.reactivated.Fprint | ||
ExecStart=/usr/libexec/fprintd | ||
|
||
# Filesystem lockdown | ||
ProtectSystem=strict | ||
ProtectKernelTunables=true | ||
ProtectKernelLogs=true | ||
ProtectControlGroups=true | ||
# This always corresponds to /var/lib/fprint | ||
StateDirectory=fprint | ||
StateDirectoryMode=0700 | ||
ProtectHome=true | ||
PrivateTmp=true | ||
|
||
SystemCallFilter=@system-service | ||
|
||
# Network | ||
RestrictAddressFamilies=AF_UNIX AF_LOCAL AF_NETLINK | ||
|
||
# Execute Mappings | ||
MemoryDenyWriteExecute=true | ||
|
||
# Modules | ||
ProtectKernelModules=true | ||
|
||
# Real-time | ||
RestrictRealtime=true | ||
|
||
# Privilege escalation | ||
NoNewPrivileges=true | ||
|
||
# Protect clock, allow USB and SPI device access | ||
ProtectClock=yes | ||
DeviceAllow=char-usb_device rw | ||
DeviceAllow=char-spi rw | ||
DeviceAllow=char-hidraw rw | ||
|
||
# Allow tuning USB parameters (wakeup and persist) | ||
ReadWritePaths=/sys/devices | ||
|
||
[Install] | ||
WantedBy=multi-user.target |