diff --git a/src/units/system/dbus-broker.service.in b/src/units/system/dbus-broker.service.in index cc5ae361..cb90ba3c 100644 --- a/src/units/system/dbus-broker.service.in +++ b/src/units/system/dbus-broker.service.in @@ -12,11 +12,25 @@ Type=notify Sockets=dbus.socket OOMScoreAdjust=-900 LimitNOFILE=16384 -ProtectSystem=full -PrivateTmp=true -PrivateDevices=true ExecStart=@bindir@/dbus-broker-launch --scope system --audit ExecReload=@bindir@/busctl call org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus ReloadConfig +LockPersonality=yes +MemoryDenyWriteExecute=yes +NoNewPrivileges=yes +PrivateDevices=yes +PrivateTmp=yes +ProtectClock=yes +ProtectControlGroups=yes +ProtectHome=yes +ProtectHostname=yes +ProtectKernelLogs=yes +ProtectKernelModules=yes +ProtectKernelTunables=yes +ProtectSystem=full +RestrictNamespaces=yes +RestrictRealtime=yes +RestrictSUIDSGID=yes +SystemCallArchitectures=native [Install] Alias=dbus.service diff --git a/src/units/user/dbus-broker.service.in b/src/units/user/dbus-broker.service.in index 15de0d5b..079c46ad 100644 --- a/src/units/user/dbus-broker.service.in +++ b/src/units/user/dbus-broker.service.in @@ -13,6 +13,23 @@ Sockets=dbus.socket ExecStart=@bindir@/dbus-broker-launch --scope user ExecReload=@bindir@/busctl --user call org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus ReloadConfig Slice=session.slice +LockPersonality=yes +MemoryDenyWriteExecute=yes +NoNewPrivileges=yes +PrivateDevices=yes +PrivateTmp=yes +ProtectClock=yes +ProtectControlGroups=yes +ProtectHome=read-only +ProtectHostname=yes +ProtectKernelLogs=yes +ProtectKernelModules=yes +ProtectKernelTunables=yes +ProtectSystem=full +RestrictNamespaces=yes +RestrictRealtime=yes +RestrictSUIDSGID=yes +SystemCallArchitectures=native [Install] Alias=dbus.service