pulseaudio/harden_pulseaudio.service.patch

25 lines
895 B
Diff

Index: pulseaudio-15.0/src/daemon/systemd/user/pulseaudio.service.in
===================================================================
--- pulseaudio-15.0.orig/src/daemon/systemd/user/pulseaudio.service.in
+++ pulseaudio-15.0/src/daemon/systemd/user/pulseaudio.service.in
@@ -23,6 +23,19 @@ MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
Restart=on-failure
RestrictNamespaces=yes
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=read-only
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
SystemCallArchitectures=native
SystemCallFilter=@system-service
# Note that notify will only work if --daemonize=no