[pulseaudio] 01/04: Backport upstream patch to use ConditionUser=!root systemd

Felipe Sateler fsateler at moszumanska.debian.org
Sat Nov 18 15:29:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

fsateler pushed a commit to annotated tag debian/11.1-2
in repository pulseaudio.

commit 733c5490505091f1724f3ac4cb567c6d0a4010ca
Author: Felipe Sateler <fsateler at debian.org>
Date:   Wed Nov 15 19:26:17 2017 -0300

    Backport upstream patch to use ConditionUser=!root systemd
---
 ...ostarting-pulseaudio-systemd-units-for-ro.patch | 37 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 38 insertions(+)

diff --git a/debian/patches/launch-avoid-autostarting-pulseaudio-systemd-units-for-ro.patch b/debian/patches/launch-avoid-autostarting-pulseaudio-systemd-units-for-ro.patch
new file mode 100644
index 0000000..8a07b8c
--- /dev/null
+++ b/debian/patches/launch-avoid-autostarting-pulseaudio-systemd-units-for-ro.patch
@@ -0,0 +1,37 @@
+From: Felipe Sateler <fsateler at debian.org>
+Date: Wed, 6 Sep 2017 19:55:56 -0300
+Subject: launch: avoid autostarting pulseaudio systemd units for root
+
+The autospawn mechanism already had a root-autospawn protection mechanism. When
+using systemd that was lost. Systemd 234 has a mechanism to conditionalize unit starting
+on the running user, so lets do that to protect against root autospawning.
+
+(cherry picked from commit 24928d6b6fa1cde3312bcf63e4e14d7003aadc69)
+---
+ src/daemon/systemd/user/pulseaudio.service.in | 1 +
+ src/daemon/systemd/user/pulseaudio.socket     | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/daemon/systemd/user/pulseaudio.service.in b/src/daemon/systemd/user/pulseaudio.service.in
+index 2bd780f..46897bf 100644
+--- a/src/daemon/systemd/user/pulseaudio.service.in
++++ b/src/daemon/systemd/user/pulseaudio.service.in
+@@ -14,6 +14,7 @@ Description=Sound Service
+ # After=pulseaudio.socket is not needed, as it is already implicit in the
+ # socket-service relationship, see systemd.socket(5).
+ Requires=pulseaudio.socket
++ConditionUser=!root
+ 
+ [Service]
+ # Note that notify will only work if --daemonize=no
+diff --git a/src/daemon/systemd/user/pulseaudio.socket b/src/daemon/systemd/user/pulseaudio.socket
+index 332ece8..98c1002 100644
+--- a/src/daemon/systemd/user/pulseaudio.socket
++++ b/src/daemon/systemd/user/pulseaudio.socket
+@@ -1,5 +1,6 @@
+ [Unit]
+ Description=Sound System
++ConditionUser=!root
+ 
+ [Socket]
+ Priority=6
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a8aaffd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+launch-avoid-autostarting-pulseaudio-systemd-units-for-ro.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-pulseaudio/pulseaudio.git



More information about the pkg-pulseaudio-devel mailing list