2022-08-09 04:43:51 -04:00
|
|
|
[Service]
|
2022-08-10 09:07:25 -04:00
|
|
|
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_NET_BIND_SERVICE CAP_SETUID CAP_SETGID
|
2022-08-09 04:43:51 -04:00
|
|
|
LockPersonality=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
PrivateIPC=true
|
|
|
|
PrivateTmp=true
|
|
|
|
ProcSubset=pid
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectControlGroups=true
|
2022-08-10 08:27:43 -04:00
|
|
|
ProtectHome=true
|
|
|
|
ProtectHostname=true
|
2022-08-09 04:43:51 -04:00
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectProc=invisible
|
|
|
|
ProtectSystem=strict
|
|
|
|
ReadWritePaths=/var/lib/nginx /var/log/nginx -/var/cache/nginx
|
|
|
|
RemoveIPC=true
|
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
|
|
RestrictNamespaces=true
|
|
|
|
RestrictRealtime=true
|
|
|
|
RestrictSUIDSGID=true
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallFilter=@system-service
|
|
|
|
SystemCallFilter=~@obsolete
|