Your message dated Sat, 27 Dec 2014 19:32:38 +0100
with message-id <549efb46.1040...@thykier.net>
and subject line Re: Bug#773180: (pre-approval) unblock: dbus with #773107 fixed
has caused the Debian Bug report #773180,
regarding unblock: dbus/1.8.12-3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
773180: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773180
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: wishlist
User: release.debian....@packages.debian.org
Usertags: unblock

I just uploaded a dbus version to experimental with more robust
owner/permissions setting for dbus-daemon-launch-helper (debdiff
attached). Would you be willing to consider equivalent changes via
unstable (probably as dbus/1.8.12-2) for jessie?

Context: while upgrading a wheezy system to jessie, I hit the same
man-db -> man-db trigger cycle that Paul Gevers reported in
<https://bugs.debian.org/771730#20>. This left dbus system services in
a temporarily broken state, because dbus had been unpacked but not configured.
With <https://bugs.debian.org/773107> fixed, this broken state would be
avoided.

I have tested the experimental dbus in an upgrade (a real system) and
a new installation (minimal cdebootstrap), and it correctly leaves
dbus-daemon-launch-helper 4754 root:messagebus in both cases.

Regards,
    S
diffstat for dbus-1.9.4 dbus-1.9.4

 changelog     |   13 +++++++++++++
 dbus.postinst |    5 +++--
 dbus.postrm   |    6 ++++++
 dbus.preinst  |   20 ++++++++++++++++++++
 4 files changed, 42 insertions(+), 2 deletions(-)

diff -Nru dbus-1.9.4/debian/changelog dbus-1.9.4/debian/changelog
--- dbus-1.9.4/debian/changelog	2014-11-24 13:58:25.000000000 +0000
+++ dbus-1.9.4/debian/changelog	2014-12-15 08:18:25.000000000 +0000
@@ -1,3 +1,16 @@
+dbus (1.9.4-2) experimental; urgency=medium
+
+  * postinst: use dpkg-statoverride to set the permissions for
+    dbus-daemon-launch-helper (expected to be 04754 root:messagebus)
+    as suggested in Policy §10.9. This avoids a temporarily broken state
+    when an upgraded dbus is unpacked but not yet configured (Closes: #773107)
+  * preinst: opportunistically set up the same dpkg-statoverride entry
+    if the group already exists, to avoid the same broken state during
+    upgrades from older versions without needing Pre-Depends: adduser
+  * postrm: delete the dpkg-statoverride entry on purge
+
+ -- Simon McVittie <s...@debian.org>  Mon, 15 Dec 2014 08:18:15 +0000
+
 dbus (1.9.4-1) experimental; urgency=medium
 
   * New upstream release 1.9.4
diff -Nru dbus-1.9.4/debian/dbus.postinst dbus-1.9.4/debian/dbus.postinst
--- dbus-1.9.4/debian/dbus.postinst	2014-11-24 13:58:25.000000000 +0000
+++ dbus-1.9.4/debian/dbus.postinst	2014-12-15 08:18:25.000000000 +0000
@@ -31,9 +31,10 @@
             --disabled-password \
             --group "$MESSAGEUSER"
 
+    # The preinst might have done this already, or a sysadmin might have
+    # set up their own dpkg-statoverride. Keep this in sync with the preinst.
     if ! dpkg-statoverride --list "$LAUNCHER" >/dev/null 2>&1; then
-            chown root:"$MESSAGEUSER" "$LAUNCHER"
-            chmod 4754 "$LAUNCHER"
+        dpkg-statoverride --update --add root "$MESSAGEUSER" 4754 "$LAUNCHER"
     fi
 
     # This is idempotent, so it's OK to do every time. The system bus' init
diff -Nru dbus-1.9.4/debian/dbus.postrm dbus-1.9.4/debian/dbus.postrm
--- dbus-1.9.4/debian/dbus.postrm	2014-11-24 13:58:25.000000000 +0000
+++ dbus-1.9.4/debian/dbus.postrm	2014-12-15 08:18:25.000000000 +0000
@@ -7,6 +7,12 @@
 
 	rm -f /var/lib/dbus/machine-id
 	rmdir /var/lib/dbus || true
+
+	LAUNCHER=/usr/lib/dbus-1.0/dbus-daemon-launch-helper
+
+	if dpkg-statoverride --list "$LAUNCHER" >/dev/null 2>&1 ; then
+		dpkg-statoverride --remove "$LAUNCHER"
+	fi
 fi
 
 #DEBHELPER#
diff -Nru dbus-1.9.4/debian/dbus.preinst dbus-1.9.4/debian/dbus.preinst
--- dbus-1.9.4/debian/dbus.preinst	1970-01-01 01:00:00.000000000 +0100
+++ dbus-1.9.4/debian/dbus.preinst	2014-12-15 08:18:25.000000000 +0000
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+MESSAGEUSER=messagebus
+LAUNCHER=/usr/lib/dbus-1.0/dbus-daemon-launch-helper
+
+# Avoid having the new $LAUNCHER temporarily go back to
+# its permissions and ownership from the .deb (0755 root:root).
+# We do this opportunistically - only if $MESSAGEUSER already exists
+# (i.e. dbus is installed or has been installed in the past) - to avoid having
+# to pre-depend on adduser, and we don't do it if the postinst or
+# the sysadmin has already set up a dpkg-statoverride.
+# Keep this in sync with the postinst.
+if getent group "$MESSAGEUSER" >/dev/null && \
+        ! dpkg-statoverride --list "$LAUNCHER" >/dev/null 2>&1; then
+    dpkg-statoverride --update --add root "$MESSAGEUSER" 4754 "$LAUNCHER"
+fi
+
+#DEBHELPER#

--- End Message ---
--- Begin Message ---
On 2014-12-27 19:21, Cyril Brulebois wrote:
> Ivo De Decker <iv...@debian.org> (2014-12-26):
>> Control: retitle -1 unblock: dbus/1.8.12-3
>>
>> Hi,
>>
>> [...]
>>
>> Another dbus upload happened, which was unblocked by Niels, but needs an
>> unblock-udeb: […]
> 
> Still no objection.
> 
> Mraw,
> KiBi.
> 

Unblocked, thanks.

~Niels

--- End Message ---

Reply via email to