Add systemd hardening options
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=OpenXR streaming server
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server --application
|
||||
Restart=on-failure
|
||||
RestartSec=0
|
||||
PrivateTmp=true
|
||||
Vendored
+15
@@ -4,3 +4,18 @@ Description=OpenXR streaming server
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server
|
||||
CapabilityBoundingSet=CAP_SYS_NICE
|
||||
AmbientCapabilities=CAP_SYS_NICE
|
||||
LockPersonality=true
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectClock=true
|
||||
ProtectControlGroups=true
|
||||
ProtectKernelLogs=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectProc=invisible
|
||||
ProtectSystem=strict
|
||||
RemoveIPC=true
|
||||
RestrictNamespaces=true
|
||||
RestrictSUIDSGID=true
|
||||
|
||||
Reference in New Issue
Block a user