summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-11 21:57:03 -0500
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-11 21:57:03 -0500
commit953e7cde90e3220849af329ba5f194b6d14277a4 (patch)
tree9ca6e9ea19908109ba458e97fcfa3a97fae17b91
parent283508b8a77496abea6aa85f3536016716077c85 (diff)
downloadcgit-syntax-highlighting-953e7cde90e3220849af329ba5f194b6d14277a4.tar.xz
cgit-syntax-highlighting-953e7cde90e3220849af329ba5f194b6d14277a4.zip
systemd: improve sandboxing
SystemCallErrorNumber=EPERM is semantically wrong
-rw-r--r--syntax-highlighting.service.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/syntax-highlighting.service.in b/syntax-highlighting.service.in
index cd90546..38faaa8 100644
--- a/syntax-highlighting.service.in
+++ b/syntax-highlighting.service.in
@@ -10,8 +10,10 @@ IPAddressDeny=any
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
+CapabilityBoundingSet=
PrivateDevices=yes
PrivateTmp=yes
+ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
@@ -24,7 +26,6 @@ RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
SystemCallArchitectures=native
-SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
[Install]