systemd: drop @resources from SystemCallFilter blocklist (nginx workers need prlimit64); set SystemCallErrorNumber=EPERM
This commit is contained in:
@@ -41,7 +41,8 @@ RestrictSUIDSGID=true
|
||||
LockPersonality=true
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallFilter=~@privileged @resources @mount @debug @cpu-emulation @obsolete @raw-io @reboot @swap
|
||||
SystemCallFilter=~@privileged @mount @debug @cpu-emulation @obsolete @raw-io @reboot @swap
|
||||
SystemCallErrorNumber=EPERM
|
||||
|
||||
# Paths nginx legitimately writes to. ProtectSystem=strict makes everything
|
||||
# else read-only; these carve out the exceptions.
|
||||
|
||||
@@ -41,7 +41,8 @@ RestrictSUIDSGID=true
|
||||
LockPersonality=true
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallFilter=~@privileged @resources @mount @debug @cpu-emulation @obsolete @raw-io @reboot @swap
|
||||
SystemCallFilter=~@privileged @mount @debug @cpu-emulation @obsolete @raw-io @reboot @swap
|
||||
SystemCallErrorNumber=EPERM
|
||||
|
||||
# Paths nginx legitimately writes to. ProtectSystem=strict makes everything
|
||||
# else read-only; these carve out the exceptions.
|
||||
|
||||
Reference in New Issue
Block a user