Debian Codegraph @

examples/email-reminder.service

raw symbols SCIP
1 [Unit]
2 Description=Send email reminders
3 After=network-online.target email-reminder-collect.service
4 Wants=network-online.target
5 Requires=email-reminder-collect.service
6
7 [Service]
8 Type=oneshot
9 User=email-reminder
10 Group=email-reminder
11 ExecStart=/usr/bin/send-reminders
12
13 # Security hardening
14 LockPersonality=true
15 MemoryDenyWriteExecute=true
16 NoNewPrivileges=true
17 ProtectClock=true
18 ProtectControlGroups=true
19 ProtectHostname=true
20 ProtectKernelLogs=true
21 ProtectKernelModules=true
22 ProtectKernelTunables=true
23 ProcSubset=pid
24 RemoveIPC=true
25 RestrictNamespaces=true
26 RestrictRealtime=true
27
28 # Minimal list of syscalls
29 SystemCallArchitectures=native
30 SystemCallFilter=@system-service
31
32 # Restrict filesystem access
33 PrivateDevices=true
34 PrivateTmp=true
35 PrivateUsers=true
36 ProtectHome=true
37 ProtectProc=invisible
38 ProtectSystem=strict
39 ReadWritePaths=/var/spool/email-reminder
40 RestrictSUIDSGID=true
41 UMask=0077
42
43 # Network restrictions
44 RestrictAddressFamilies=AF_INET AF_INET6
45
46 # No special capabilities needed
47 AmbientCapabilities=
48 CapabilityBoundingSet=