service: don't give CAP_DAC_OVERRIDE capability to NetworkManager

https://bugzilla.redhat.com/show_bug.cgi?id=1921826

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/742
This commit is contained in:
Thomas Haller
2021-02-03 11:30:18 +01:00
parent e2df6c7503
commit 2e334f54b2

View File

@@ -14,7 +14,7 @@ ExecStart=@sbindir@/NetworkManager --no-daemon
Restart=on-failure Restart=on-failure
# NM doesn't want systemd to kill its children for it # NM doesn't want systemd to kill its children for it
KillMode=process KillMode=process
CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT
ProtectSystem=true ProtectSystem=true
ProtectHome=read-only ProtectHome=read-only