Bug#329409: [devmapper] ownership and permissions breakage

Roger Leigh rleigh at whinlatter.ukfsn.org
Wed Dec 7 15:55:28 UTC 2005


On Tue, Dec 06, 2005 at 10:27:59PM +0000, Roger Leigh wrote:
tags 316883 + patch
thanks

> These bugs have gone far too long with no fix, and with absolutely no
> justification for the wontfix tag.  They cause real breakage on live
> Debian systems, and not fixing this bug is completely unacceptable.
> Unless this is resolved shortly, I will be referring it to the
> Technical Committee.
> 
> The ownership and permissions of disk block devices on a Debian system
> are root:disk, 0660.  Anything other than that is gratuitously
> different, and will break existing tools that require those settings.

The following patch, using the configure options suggested by Alasdair
Kergon, reverts devmapper to the traditional and correct behaviour.
If there is no response by the weekend, I intend to NMU this.

Additionally, and more seriously, this breakage is also present in
the sarge release, and I would very much like to see this fixed in
sarge-proposed-updates.  The same patch to debian/rules should do
the job.  Would there be any objection to my submitting this fix?


Regards,
Roger


diff -urN devmapper-1.02.02.old/debian/changelog devmapper-1.02.02/debian/changelog
--- devmapper-1.02.02.old/debian/changelog	2005-12-07 15:29:04.000000000 +0000
+++ devmapper-1.02.02/debian/changelog	2005-12-07 15:40:52.152387996 +0000
@@ -1,3 +1,14 @@
+devmapper (2:1.02.02-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * LVM devices are created with root:disk ownership and 0660 permissions,
+    which is used by all other disk block devices.  This allows backups
+    of LVM logical volumes with tools such as amanda, which run as user
+    backup, a member of the disk group.
+    (closes: #329409, #316883, #341901).
+
+ -- Roger Leigh <rleigh at debian.org>  Wed,  7 Dec 2005 15:38:15 +0000
+
 devmapper (2:1.02.02-1) unstable; urgency=low
 
   * New upstram version. 
diff -urN devmapper-1.02.02.old/debian/rules devmapper-1.02.02/debian/rules
--- devmapper-1.02.02.old/debian/rules	2005-12-07 15:29:04.000000000 +0000
+++ devmapper-1.02.02/debian/rules	2005-12-07 15:33:12.924527475 +0000
@@ -29,7 +29,10 @@
 		--mandir=\$${prefix}/share/man \
 		--infodir=\$${prefix}/share/info \
 		--libdir=/lib --sbindir=/sbin \
-		--enable-compat
+		--enable-compat \
+		--with-device-uid=0 \
+		--with-device-gid=6 \
+		--with-device-mode=0660
 
 $(BUILD_DIR)/build-udeb/config.status: DIR = $(BUILD_DIR)/build-udeb
 $(BUILD_DIR)/build-udeb/config.status:


-- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20051207/ffc6a2b1/attachment-0002.pgp


More information about the pkg-lvm-maintainers mailing list