mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-20 01:37:45 +02:00
dist/systemd: remove @privileged from SystemCallFilter + cleanup comments
fixes #237
This commit is contained in:
parent
7e743c74dc
commit
4301f741db
21
dist/systemd/zrepl.service
vendored
21
dist/systemd/zrepl.service
vendored
@ -21,24 +21,13 @@ RestrictNamespaces=true
|
|||||||
RestrictRealtime=yes
|
RestrictRealtime=yes
|
||||||
SystemCallArchitectures=native
|
SystemCallArchitectures=native
|
||||||
|
|
||||||
# BEGIN ProtectHome
|
|
||||||
# DEBIAN STRETCH
|
|
||||||
ProtectHome=read-only
|
ProtectHome=read-only
|
||||||
# FEDORA 28 / 29
|
# ProtectHome=tmpfs totally possible, not by default though because of Debian stretch
|
||||||
# ProtectHome=tmpfs
|
|
||||||
# END ProtectHome
|
# SystemCallFilter
|
||||||
|
# ~@privileged doesn't work with Ubuntu 18.04 ssh
|
||||||
|
SystemCallFilter=~ @mount @cpu-emulation @keyring @module @obsolete @raw-io @debug @clock @resources
|
||||||
|
|
||||||
# BEGIN SystemCallFilter
|
|
||||||
## BEGIN DEBIAN STRETCH
|
|
||||||
SystemCallFilter=~ @mount @cpu-emulation @keyring @module @obsolete @privileged @raw-io @debug @clock @resources
|
|
||||||
## END DEBIAN STRETCH
|
|
||||||
## BEGIN FEDORA 28/29
|
|
||||||
## Syscall blacklist (should be fairly stable)
|
|
||||||
#SystemCallFilter=~ @mount @aio @cpu-emulation @keyring @memlock @module @obsolete @privileged @raw-io @reboot @setuid @swap @sync @timer @debug @clock @chown @resources
|
|
||||||
## Syscall whitelist (not sure how stable)
|
|
||||||
#SystemCallFilter=@default @file-system @process @basic-io @ipc @network-io @signal @io-event brk mprotect sched_getaffinity ioctl getrandom
|
|
||||||
## END END FEDORA 28/29
|
|
||||||
# END SystemCallFilter
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user