[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#341901: marked as done (udev: Ownership and permissions incorrect for device-mapper devices and directories)

Your message dated Sat, 10 Jun 2006 14:47:10 -0700
with message-id <E1FpBIU-0001KS-70@spohr.debian.org>
and subject line Bug#329409: fixed in devmapper 2:1.02.07-1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: udev
Version: 0.076-3
Severity: normal

The ownership and permissions for all device-mapper devices differ from
other block devices on the system (root:disk, 0660):

$ ls -l /dev/mapper/
total 0
crw-rw---- 1 root root  10, 63 2005-12-03 12:47 control
brw------- 1 root root 254,  6 2005-12-03 12:48 hda_vg-cvsdata
brw------- 1 root root 254, 11 2005-12-03 12:48 hda_vg-d4e82c7d--2df9--48f0--89be--ebeb500ddf2d
brw------- 1 root root 254, 10 2005-12-03 12:48 hda_vg-d4e82c7d--2df9--48f0--89be--ebeb500ddf2d-cow
brw------- 1 root root 254, 12 2005-12-03 12:48 hda_vg-experimental_chroot
brw------- 1 root root 254,  5 2005-12-03 12:48 hda_vg-home
brw------- 1 root root 254,  7 2005-12-03 12:48 hda_vg-sarge_chroot
brw------- 1 root root 254,  9 2005-12-03 12:48 hda_vg-sid_chroot
brw------- 1 root root 254,  8 2005-12-03 12:48 hda_vg-sid_chroot-real
brw------- 1 root root 254,  0 2005-12-03 12:48 hda_vg-swap0
brw------- 1 root root 254,  1 2005-12-03 12:48 hda_vg-swap1
brw------- 1 root root 254,  2 2005-12-03 12:48 hda_vg-swap2
brw------- 1 root root 254,  3 2005-12-03 12:48 hda_vg-usr
brw------- 1 root root 254,  4 2005-12-03 12:48 hda_vg-var

In addition, the directories for each volume group are only readable by

$ ls -ld /dev/hda_vg
drwx------ 2 root root 260 2005-12-03 12:48 /dev/hda_vg/

The permissions on the directories should be 0775, and the owner should
also be root:disk IMO.

The incorrect permissions make it hard to use the "disk" group, e.g. for
backup tools such as amanda.

In short, I would very much like to
1) Have the default permissions of LVM/device-mapper devices be 0660.
2) Have the default ownership be root:disk.
3) Have the default volume group directory permissions be 0775
   (including /dev/mapper).
4) Have the default volume group directory ownership be root:disk.

This is also a problem for sarge, as well as unstable.  If this is
possible to fix by tweaking permissions.rules, that would be very handy
(but for volume groups, it's not possible to know the names in advance,
unlike /dev/mapper/).


-- Package-specific info:
-- /etc/udev/rules.d/:
total 5
lrwxrwxrwx 1 root root   20 2005-10-11 21:01 020_permissions.rules -> ../permissions.rules
lrwxrwxrwx 1 root root   19 2005-10-14 22:36 025_libgphoto2.rules -> ../libgphoto2.rules
lrwxrwxrwx 1 root root   19 2005-10-11 21:01 cd-aliases.rules -> ../cd-aliases.rules
-rw-r--r-- 1 root root 4957 2005-10-08 19:38 devfs.rules
lrwxrwxrwx 1 root root   13 2005-10-11 21:01 udev.rules -> ../udev.rules
lrwxrwxrwx 1 root root   19 2005-10-11 21:01 z20_persistent.rules -> ../persistent.rules
lrwxrwxrwx 1 root root   12 2005-10-11 21:01 z50_run.rules -> ../run.rules
lrwxrwxrwx 1 root root   16 2005-10-11 21:01 z55_hotplug.rules -> ../hotplug.rules
lrwxrwxrwx 1 root root   19 2005-08-03 21:39 z60_alsa-utils.rules -> ../alsa-utils.rules
lrwxrwxrwx 1 root root   15 2005-09-20 19:13 z60_hdparm.rules -> ../hdparm.rules
lrwxrwxrwx 1 root root   17 2005-10-11 21:01 z70_hotplugd.rules -> ../hotplugd.rules

-- /sys/:

-- Kernel configuration:
 isapnp_init not present.

-- 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
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages udev depends on:
ii  initscripts                   2.86.ds1-6 Standard scripts needed for bootin
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  libselinux1                   1.26-1     SELinux shared libraries
ii  libsepol1                     1.8-1      Security Enhanced Linux policy lib
ii  lsb-base                      3.0-12     Linux Standard Base 3.0 init scrip
ii  makedev                       2.3.1-79   creates device files in /dev
ii  sed                           4.1.4-4    The GNU sed stream editor

udev recommends no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: devmapper
Source-Version: 2:1.02.07-1

We believe that the bug you reported is fixed in the latest version of
devmapper, which is due to be installed in the Debian FTP archive:

  to pool/main/d/devmapper/devmapper_1.02.07-1.diff.gz
  to pool/main/d/devmapper/devmapper_1.02.07-1.dsc
  to pool/main/d/devmapper/devmapper_1.02.07.orig.tar.gz
  to pool/main/d/devmapper/dmsetup-udeb_1.02.07-1_amd64.udeb
  to pool/main/d/devmapper/dmsetup_1.02.07-1_amd64.deb
  to pool/main/d/devmapper/libdevmapper-dev_1.02.07-1_amd64.deb
  to pool/main/d/devmapper/libdevmapper1.02-udeb_1.02.07-1_amd64.udeb
  to pool/main/d/devmapper/libdevmapper1.02_1.02.07-1_amd64.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 329409@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Bastian Blank <waldi@debian.org> (supplier of updated devmapper package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Sat, 10 Jun 2006 21:20:43 +0000
Source: devmapper
Binary: dmsetup libdevmapper1.02-udeb libdevmapper1.02 libdevmapper-dev dmsetup-udeb
Architecture: source amd64
Version: 2:1.02.07-1
Distribution: unstable
Urgency: low
Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
Changed-By: Bastian Blank <waldi@debian.org>
 dmsetup    - The Linux Kernel Device Mapper userspace library
 dmsetup-udeb - The Linux Kernel Device Mapper userspace library (udeb)
 libdevmapper-dev - The Linux Kernel Device Mapper header files
 libdevmapper1.02 - The Linux Kernel Device Mapper userspace library
 libdevmapper1.02-udeb - The Linux Kernel Device Mapper userspace library (udeb)
Closes: 316883 329409 341901 342455
 devmapper (2:1.02.07-1) unstable; urgency=low
   * New upstream version.
   * Update priorities to match overrides.
   * Acknowledge NMU. (closes: #316883, #329409, #341901, #342455)
 4d3f3baac4e84bce0b7484503364c960 762 admin optional devmapper_1.02.07-1.dsc
 ed0ff12decdc617d9268f213ed2c1d29 923619 admin optional devmapper_1.02.07.orig.tar.gz
 4a01f14aaf585cbfb8e7d2a88f03ac47 44831 admin optional devmapper_1.02.07-1.diff.gz
 f6776d113347ee10fb43744f88fd5f45 51844 libdevel optional libdevmapper-dev_1.02.07-1_amd64.deb
 b00e5a071a951a26d10f809504b2881b 41058 libs required libdevmapper1.02_1.02.07-1_amd64.deb
 1cdc69ffa8c9ce18f5a9db68dca4c931 29196 debian-installer optional libdevmapper1.02-udeb_1.02.07-1_amd64.udeb
 225df1b21e94d9f7694446487a5773d6 27394 admin optional dmsetup_1.02.07-1_amd64.deb
 a861d35324f707a1ea14d6f088751242 13074 debian-installer optional dmsetup-udeb_1.02.07-1_amd64.udeb
Package-Type: udeb

Version: GnuPG v1.4.3 (GNU/Linux)


--- End Message ---

Reply to: