Debian Codegraph @

examples/email-reminder-collect.service

raw symbols SCIP
1 [Unit]
2 Description=Collect email reminders
3
4 [Service]
5 Type=oneshot
6 User=root
7 Group=root
8 ExecStart=/usr/sbin/collect-reminders
9 ExecStartPost=/usr/bin/find /var/spool/email-reminder/ -name '.*' -prune -o -type f -exec /usr/bin/chown email-reminder {} +
10
11 # Security hardening
12 LockPersonality=true
13 MemoryDenyWriteExecute=true
14 NoNewPrivileges=true
15 ProtectClock=true
16 ProtectControlGroups=true
17 ProtectHostname=true
18 ProtectKernelLogs=true
19 ProtectKernelModules=true
20 ProtectKernelTunables=true
21 ProcSubset=pid
22 RemoveIPC=true
23 RestrictNamespaces=true
24 RestrictRealtime=true
25
26 # Minimal list of syscalls
27 SystemCallArchitectures=native
28 SystemCallFilter=@system-service
29
30 # Restrict filesystem access
31 PrivateDevices=true
32 PrivateTmp=true
33 ProtectHome=read-only
34 ProtectProc=invisible
35 ProtectSystem=strict
36 ReadWritePaths=/var/spool/email-reminder
37 RestrictSUIDSGID=true
38 UMask=0077
39
40 # No network needed
41 IPAddressDeny=any
42 PrivateNetwork=true
43 RestrictAddressFamilies=none
44
45 # Minimal capabilities needed for chown
46 AmbientCapabilities=
47 CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE