[Pkg-pulseaudio-devel] [SCM] pulseaudio packaging branch, master, updated. debian/0.9.7-1-10-g5ec825f

sjoerd at users.alioth.debian.org sjoerd at users.alioth.debian.org
Fri Nov 16 17:24:52 UTC 2007


The branch, master has been updated
       via  5ec825f5ca883e8e4ecb5b12170bf523aee42c31 (commit)
      from  c64c63ae84dc322469c1b1da3e7dfcc941c2e74c (commit)


- Shortlog ------------------------------------------------------------
5ec825f * Set pulseaudio setuid in postinst if the permissions aren't overriden by

Summary of changes:
 debian/changelog           |    3 +++
 debian/pulseaudio.postinst |    6 ++++++
 debian/rules               |    1 -
 3 files changed, 9 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit 5ec825f5ca883e8e4ecb5b12170bf523aee42c31
Author: Sjoerd Simons <sjoerd at luon.net>
Date:   Fri Nov 16 18:24:03 2007 +0100

    * Set pulseaudio setuid in postinst if the permissions aren't overriden by
      dpkg-statoverride, instead of having the binary with suid perms in the deb

diff --git a/debian/changelog b/debian/changelog
index 35b5d92..c5363c6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ pulseaudio (0.9.7-3) UNRELEASED; urgency=low
   [ CJ van den Berg ]
   * debian/control: Add depends on -utils to -module-x11. (Closes: #450840)
 
+  [ Sjoerd Simons ]
+  * Set pulseaudio setuid in postinst if the permissions aren't overriden by
+    dpkg-statoverride, instead of having the binary with suid perms in the deb
 
  -- Sjoerd Simons <sjoerd at debian.org>  Fri, 16 Nov 2007 18:17:14 +0100
 
diff --git a/debian/pulseaudio.postinst b/debian/pulseaudio.postinst
index 183960c..8855003 100644
--- a/debian/pulseaudio.postinst
+++ b/debian/pulseaudio.postinst
@@ -14,6 +14,8 @@ set -e
 # for details, see http://www.debian.org/doc/debian-policy/ or
 # the debian-policy package
 
+PULSEAUDIO=pulseaudio
+
 case "$1" in
   configure)
     if ! getent passwd pulse >/dev/null; then
@@ -28,6 +30,10 @@ case "$1" in
     if ! getent group pulse-rt >/dev/null; then
       addgroup --quiet --system pulse-rt
     fi
+
+    if ! dpkg-statoverride --list "$PULSEAUDIO" > /dev/null 2>&1; then
+       chmod 4754 "$PULSEAUDIO"
+    fi
   ;;
   abort-upgrade|abort-remove|abort-deconfigure)
   ;;
diff --git a/debian/rules b/debian/rules
index c886c09..6db705b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,7 +35,6 @@ update-patch-series:
 	done
 
 DEB_CONFIGURE_EXTRA_FLAGS = --with-realtime-group=pulse-rt
-DEB_FIXPERMS_EXCLUDE = usr/bin/pulseaudio
 DEB_DH_MAKESHLIBS_ARGS_ALL = --exclude=usr/lib/pulse-0.9/modules
 DEB_DH_INSTALL_ARGS = --sourcedir=$(CURDIR)/debian/tmp
 DEB_UPDATE_RCD_PARAMS = defaults 25 15

-- 
pulseaudio packaging



More information about the Pkg-pulseaudio-devel mailing list