units/systemd-portabled: enable NoNewPrivileges=
As with all other daemons we ship.
This commit is contained in:
@@ -20,6 +20,7 @@ ExecStart={{LIBEXECDIR}}/systemd-portabled
|
||||
BusName=org.freedesktop.portable1
|
||||
CapabilityBoundingSet=CAP_KILL CAP_SYS_PTRACE CAP_SYS_ADMIN CAP_SETGID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD
|
||||
MemoryDenyWriteExecute=yes
|
||||
NoNewPrivileges=yes
|
||||
ProtectHostname=yes
|
||||
ProtectKernelLogs=yes
|
||||
RestrictRealtime=yes
|
||||
|
||||
@@ -16,6 +16,7 @@ Documentation=man:org.freedesktop.portable1(5)
|
||||
ExecStart={{LIBEXECDIR}}/systemd-portabled --user
|
||||
BusName=org.freedesktop.portable1
|
||||
MemoryDenyWriteExecute=yes
|
||||
NoNewPrivileges=yes
|
||||
RestrictRealtime=yes
|
||||
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
|
||||
SystemCallFilter=@system-service @mount
|
||||
|
||||
Reference in New Issue
Block a user