Files
roowho2/assets/systemd/roowho2.service
T
oysteikt 3e8928ef46
Build and test / check (push) Successful in 1m14s
Build and test / build (push) Successful in 2m29s
Build and test / test (push) Successful in 4m25s
Build and test / docs (push) Successful in 6m23s
nix/module: reuse systemd units
2026-07-30 19:32:28 +09:00

59 lines
1.3 KiB
Desktop File

[Unit]
Wants=network-online.target dbus.socket
After=network-online.target dbus.socket
[Service]
Type=notify
Restart=on-failure
DynamicUser=true
# Needed for walld to open tty devices
SupplementaryGroups=tty
ExecStart=/usr/bin/roowhod
ConfigurationDirectory=roowho2
# Finger needs CAP_DAC_READ_SEARCH to look for various files in user's home directories.
AmbientCapabilities=CAP_DAC_READ_SEARCH
CapabilityBoundingSet=CAP_DAC_READ_SEARCH
PrivateUsers=false
ProtectHome=false
# walld needs access to tty/pts devices.
DeviceAllow=char-tty rw
DeviceAllow=char-pts rw
PrivateDevices=false
DevicePolicy=closed
# Might use /proc/<pid>/stat to determine the caller's PID + UID
ProtectProc=default
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateIPC=true
PrivateMounts=true
PrivateTmp=true
ProcSubset=pid
ProtectClock=true
ProtectControlGroups=strict
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
RemoveIPC=true
RestrictAddressFamilies=AF_INET
RestrictAddressFamilies=AF_INET6
RestrictAddressFamilies=AF_UNIX
# Needed for auditd socket
RestrictAddressFamilies=AF_NETLINK
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SocketBindDeny=any
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged
SystemCallFilter=~@resources
UMask=0077