Bug#370684: lvm2: creates device nodes as root:root 600

Roger Leigh rleigh at debian.org
Tue Jun 6 11:53:36 UTC 2006


Package: lvm2
Version: 2.02.05-1
Severity: serious
Justification: Device ownership and permissions are incorrect

This bug is a copy of #316883, which was reassigned to the tech-ctte
and fixed in a devmapper NMU.

The defaults are also incorrect in the lvm2 package.  I will NMU shortly
to correct the problem by making this change:

diff -urN lvm2-2.02.05.original/lib/activate/activate.c lvm2-2.02.05/lib/activate/activate.c
--- lvm2-2.02.05.original/lib/activate/activate.c	2006-06-06 10:52:24.000000000 +0100
+++ lvm2-2.02.05/lib/activate/activate.c	2006-06-06 10:53:20.322649695 +0100
@@ -827,8 +827,8 @@
 	}
 	else {
 		lv->uid = 0;
-		lv->gid = 0;
-		lv->mode = 0600;
+		lv->gid = 6;
+		lv->mode = 0660;
 	}
 
 	memlock_inc();

This makes sure that the device ownership and permissions have the same
defaults as devmapper and the rest of the Debian system (root:disk,
0660).


Regards,
Roger


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.17
Locale: LANG=en_GB.UTF8, LC_CTYPE=en_GB.UTF8 (charmap=UTF-8)

Versions of packages lvm2 depends on:
ii  cdebconf [debconf-2.0]     0.102         Debian Configuration Management Sy
ii  debconf [debconf-2.0]      1.5.1         Debian configuration management sy
ii  libc6                      2.3.6-13      GNU C Library: Shared libraries
ii  libdevmapper1.02           2:1.02.05-2.1 The Linux Kernel Device Mapper use
ii  libncurses5                5.5-2         Shared libraries for terminal hand
ii  libreadline5               5.1-7         GNU readline and history libraries
ii  libselinux1                1.30-1        SELinux shared libraries
ii  libsepol1                  1.12-1        Security Enhanced Linux policy lib
ii  lvm-common                 1.5.20        The Logical Volume Manager for Lin

lvm2 recommends no packages.

-- debconf information excluded




More information about the pkg-lvm-maintainers mailing list