Debian Codegraph @

debian/jool-tools.jool_siit.service

raw
1 [Unit]
2 Description=Stateless IP/ICMP Translator
3 Documentation=https://nicmx.github.io/Jool
4 After=network-pre.target
5 ConditionPathExists=/etc/jool/jool_siit.conf
6
7 [Service]
8 Type=oneshot
9 RemainAfterExit=yes
10
11 ExecStartPre=/sbin/modprobe jool_siit
12 ExecStart=/usr/bin/jool_siit file handle /etc/jool/jool_siit.conf
13 ExecStop=/usr/bin/jool_siit -f /etc/jool/jool_siit.conf instance remove
14 # Do not modprobe -r; some other instance could be running.
15
16 # -- Security Section --
17 # Long story short: All the jool clients need is read access on the config
18 # files, and the Netlink socket to kernelspace.
19 # The ExecStartPre above also needs to be able to modify kernel modules.
20 # Everything else should probably be blocked.
21
22 CapabilityBoundingSet=CAP_SYS_MODULE CAP_NET_ADMIN
23 NoNewPrivileges=yes
24 ProtectSystem=strict
25 ProtectHome=yes
26 InaccessiblePaths=/tmp /dev
27 ProtectKernelTunables=yes
28 ProtectKernelModules=no
29 ProtectControlGroups=yes
30 RestrictAddressFamilies=AF_NETLINK
31 RestrictNamespaces=yes
32 LockPersonality=yes
33 MemoryDenyWriteExecute=yes
34 RestrictRealtime=yes
35 SystemCallArchitectures=native
36
37 [Install]
38 WantedBy=multi-user.target