Bug#606124: lvm2: Should have an easy way to persistently set device owner/group/permissions

Maik Zumstrull maik.zumstrull at rz.uni-karlsruhe.de
Mon Dec 6 15:29:57 UTC 2010


Package: lvm2
Version: 2.02.66-4
Severity: wishlist

As far as I can see, all lvm2 block devices are owned by root:disk and 0660 and
there is no easy way to change it. chown/chmod is lost on reboot when udev
recreates the node. Writing your own udev rules is very iffy, as you would need
a thorough understanding of how Debian orders the rules and includes them in
initramfs.

The primary case where I would like to do this is virtualization. The VM needs
to be able to access block devices exported to the guest, but I don't think the
virtualization user should just be a member of disk, as it doesn't need to
access all devices.

I think lvcreate should have simple options for owner, group and permissions,
with the current situation as the default when not specified, and the necessary
udev magic to make the settings stick across reboots.



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup                      2:1.02.48-4 The Linux Kernel Device Mapper use
ii  libc6                        2.11.2-7    Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.48-4 The Linux Kernel Device Mapper use
ii  libreadline5                 5.2-7       GNU readline and history libraries
ii  libudev0                     164-2       libudev shared library
ii  lsb-base                     3.2-23.1    Linux Standard Base 3.2 init scrip

lvm2 recommends no packages.

lvm2 suggests no packages.

-- no debconf information





More information about the pkg-lvm-maintainers mailing list