Accepting request 926705 from home:jsegitz:branches:systemdhardening:multimedia:libs
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/926705 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=245
This commit is contained in:
parent
f20ffb9118
commit
22a7b88d91
24
harden_pulseaudio.service.patch
Normal file
24
harden_pulseaudio.service.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 20 14:37:33 UTC 2021 - Johannes Segitz <jsegitz@suse.com>
|
||||||
|
|
||||||
|
- Added hardening to systemd service(s) (bsc#1181400). Added patch(es):
|
||||||
|
* harden_pulseaudio.service.patch
|
||||||
|
Modified:
|
||||||
|
* pulseaudio.service
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 8 10:56:52 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
Fri Oct 8 10:56:52 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -3,6 +3,19 @@ Description=System wide PulseAudio instance
|
|||||||
After=syslog.target network.target alsasound.service
|
After=syslog.target network.target alsasound.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
# 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
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
ExecStart=/usr/bin/pulseaudio --system --log-target=journal
|
ExecStart=/usr/bin/pulseaudio --system --log-target=journal
|
||||||
|
@ -53,6 +53,7 @@ Patch1: suppress-socket-error-msg.diff
|
|||||||
Patch5: qpaeq-shebang.patch
|
Patch5: qpaeq-shebang.patch
|
||||||
# PATCH-FIX-OPENSUSE Workaround for old systemd on Leap 15.x
|
# PATCH-FIX-OPENSUSE Workaround for old systemd on Leap 15.x
|
||||||
Patch6: pulseaudio-old-systemd-workaround.patch
|
Patch6: pulseaudio-old-systemd-workaround.patch
|
||||||
|
Patch7: harden_pulseaudio.service.patch
|
||||||
BuildRequires: alsa-devel >= 1.0.19
|
BuildRequires: alsa-devel >= 1.0.19
|
||||||
BuildRequires: bluez-devel >= 5
|
BuildRequires: bluez-devel >= 5
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -334,6 +335,7 @@ System user for PulseAudio
|
|||||||
%if 0%{?suse_version} < 1550
|
%if 0%{?suse_version} < 1550
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%endif
|
%endif
|
||||||
|
%patch7 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson \
|
%meson \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user