| 1 | [Unit] |
| 2 | Description=Onionprobe |
| 3 | Documentation=file:///usr/share/doc/onionprobe/README.Debian man:onionprobe(1) https://gitlab.torproject.org/tpo/onion-services/onionprobe |
| 4 | After=network.target |
| 5 | |
| 6 | [Service] |
| 7 | EnvironmentFile=/etc/default/onionprobe |
| 8 | ExecStart=/usr/bin/onionprobe -c $CONFIG $DAEMON_OPTS |
| 9 | User=_onionprobe |
| 10 | Group=_onionprobe |
| 11 | CapabilityBoundingSet= |
| 12 | DeviceAllow=/dev/null rw |
| 13 | NoNewPrivileges=yes |
| 14 | PrivateTmp=yes |
| 15 | PrivateUsers=yes |
| 16 | ProtectControlGroups=true |
| 17 | ProtectHome=yes |
| 18 | PrivateDevices=yes |
| 19 | ProtectControlGroups=true |
| 20 | ProtectHostname=true |
| 21 | ProtectProc=invisible |
| 22 | ProtectKernelLogs=true |
| 23 | ProtectKernelModules=yes |
| 24 | ProtectKernelTunables=yes |
| 25 | ProtectSystem=full |
| 26 | ReadOnlyDirectories=/ |
| 27 | InaccessibleDirectories=/home |
| 28 | RuntimeDirectory=onionprobe |
| 29 | StateDirectory=onionprobe |
| 30 | CacheDirectory=onionprobe |
| 31 | LogsDirectory=onionprobe |
| 32 | ConfigurationDirectory=onionprobe |
| 33 | RestrictNamespaces=true |
| 34 | LockPersonality=true |
| 35 | ProtectClock=true |
| 36 | RestrictRealtime=true |
| 37 | RemoveIPC=true |
| 38 | RestrictSUIDSGID=true |
| 39 | ProcSubset=pid |
| 40 | DevicePolicy=closed |
| 41 | RestrictAddressFamilies=AF_INET AF_INET6 |
| 42 | SystemCallArchitectures=native |
| 43 | UMask=0077 |
| 44 | MemoryDenyWriteExecute=true |
| 45 | |
| 46 | [Install] |
| 47 | WantedBy=multi-user.target |