We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d00aa1c commit a08cb5dCopy full SHA for a08cb5d
1 file changed
server/data/oo7-daemon.service.in
@@ -1,9 +1,37 @@
1
[Unit]
2
Description=Secret service (oo7 implementation)
3
+
4
[Service]
5
Type=simple
6
StandardError=journal
7
ExecStart=@libexecdir@/@binary@
8
Restart=on-failure
9
+TimeoutStartSec=30s
10
+TimeoutStopSec=30s
11
12
+# Only allow CAP_IPC_LOCK
13
+CapabilityBoundingSet=CAP_IPC_LOCK
14
+AmbientCapabilities=CAP_IPC_LOCK
15
16
+# Prevent privilege escalation (blocks suid, new caps, etc.)
17
+NoNewPrivileges=true
18
19
+# Clear supplementary groups
20
+SupplementaryGroups=
21
22
+# Restrict filesystem access
23
+ProtectSystem=full
24
+PrivateTmp=yes
25
+PrivateDevices=yes
26
27
+# No network needed
28
+PrivateNetwork=yes
29
30
+ProtectKernelTunables=yes
31
+ProtectKernelModules=yes
32
+ProtectControlGroups=yes
33
+MemoryDenyWriteExecute=yes
34
+ProtectClock=yes
35
36
[Install]
37
WantedBy=default.target
0 commit comments