mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-12-22 13:45:02 -05:00
allow nginx master process to use CAP_CHOWN
This is required for it to create the /var directories it uses when the master process is running as root. It would be possible to run the nginx master process as non-root but it doesn't drop ambient capabilities when it spawns the workers so running the master process as non-root will end up giving the workers higher privileges due to them ending up getting the CAP_NET_BIND_SERVICE capability passed through.
This commit is contained in:
parent
2cf694017b
commit
8ac489c9aa
@ -1,5 +1,5 @@
|
||||
[Service]
|
||||
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_NET_BIND_SERVICE CAP_SETUID CAP_SETGID
|
||||
CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_NET_BIND_SERVICE CAP_SETUID CAP_SETGID
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid;'
|
||||
LockPersonality=true
|
||||
|
Loading…
Reference in New Issue
Block a user