Spurious conffile prompt for unmodified /etc/dbus-1/system.d/bluetooth.conf

Bug #257229 reported by Matt Zimmerman
4
Affects Status Importance Assigned to Milestone
bluez-utils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: bluez-utils

While installing updates for Intrepid, I was prompted to replace this conffile, which I had not modified.

mizar:[~] dpkg -s bluez-utils |grep bluetooth.conf
 /etc/dbus-1/system.d/bluetooth.conf 4cfc537b4df32d04896087d0cda6a173
mizar:[~] md5sum /etc/dbus-1/system.d/bluetooth.conf*
dfdfd84994e42be7296a9c570b018e2d /etc/dbus-1/system.d/bluetooth.conf
c5e0cfe9297afa4ce7c76fa2acc78cb6 /etc/dbus-1/system.d/bluetooth.conf.dpkg-new
mizar:[~] diff -u /etc/dbus-1/system.d/bluetooth.conf*
--- /etc/dbus-1/system.d/bluetooth.conf 2006-07-12 20:21:53.000000000 +0100
+++ /etc/dbus-1/system.d/bluetooth.conf.dpkg-new 2008-08-11 09:13:12.000000000 +0100
@@ -1,5 +1,5 @@
 <!-- This configuration file specifies the required security policies
- for BlueZ hcid to work. -->
+ for Bluetooth core daemon to work. -->

 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
@@ -12,15 +12,23 @@
   </policy>

   <policy at_console="true">
+ <allow send_path="/"/>
+ <allow send_path="/org/bluez"/>
+
+ <allow send_destination="org.bluez.Manager"/>
+ <allow receive_sender="org.bluez.Manager"/>
+
     <allow send_destination="org.bluez.Adapter"/>
     <allow receive_sender="org.bluez.Adapter"/>

- <allow send_path="/org/bluez/Adapter"/>
+ <allow send_destination="org.bluez.Device"/>
+ <allow receive_sender="org.bluez.Device"/>

- <allow send_destination="org.bluez.Manager"/>
- <allow receive_sender="org.bluez.Manager"/>
+ <allow send_destination="org.bluez.Service"/>
+ <allow receive_sender="org.bluez.Service"/>

- <allow send_path="/org/bluez/Manager"/>
+ <allow send_destination="org.bluez.Database"/>
+ <allow receive_sender="org.bluez.Database"/>

     <allow send_destination="org.bluez.Security"/>
     <allow receive_sender="org.bluez.Security"/>

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: nvidia
Package: bluez-utils 3.36-1ubuntu1
ProcEnviron:
 LC_COLLATE=C
 PATH=/home/username/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/sbin:/usr/sbin:/usr/games:/usr/lib/surfraw
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: bluez-utils
Uname: Linux 2.6.26-5-generic i686

Tags: apport-bug
Revision history for this message
Matt Zimmerman (mdz) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I'm not sure how this usually works, but isn't the package maintainers version of the file compared with your local version in order to determine if the file has changed? If that is the case, then you would get a spurious prompt if the package maintainer modified their version in a later package. Or is that not meant to happen?

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 257229] Re: Spurious conffile prompt for unmodified /etc/dbus-1/system.d/bluetooth.conf

On Tue, Aug 12, 2008 at 11:51:30AM -0000, Chris Coulson wrote:
> I'm not sure how this usually works, but isn't the package maintainers
> version of the file compared with your local version in order to
> determine if the file has changed? If that is the case, then you would
> get a spurious prompt if the package maintainer modified their version
> in a later package. Or is that not meant to happen?

dpkg stores a checksum of the file shipped in the package and compares it to
the version on disk, so that you're only prompted if BOTH a) the package
maintainer updates it, and b) you modified it locally.

The appearance of the conffile prompt on an unmodified conffile generally
indicates a bug. The most common cases are that it has moved between
packages without careful handling, or is being modified by a script without
the user's knowledge.

--
 - mdz

Revision history for this message
dino99 (9d9) wrote :

This version has expired

Changed in bluez-utils (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.