Bug 141050 - Permission of logical volumes do not allow backup.
Permission of logical volumes do not allow backup.
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: device-mapper-obsolete (Show other bugs)
3
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Alasdair Kergon
: FutureFeature
: 142123 153002 161555 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-28 14:50 EST by Michael J. Pawlowsky
Modified: 2007-11-30 17:10 EST (History)
3 users (show)

See Also:
Fixed In Version: RHEA-2005-188
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-01-05 17:01:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael J. Pawlowsky 2004-11-28 14:50:51 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
Logical volumes are create as root.root with 600 permissions.
It would be nice if they had similar permissions as regular disks.

Owner: root
Group: disk
Permissions: 660

That way out of the box amanda would not complain that it does not
have permissions to backup / for instance.



Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. ls /dev/mapper
2.
3.
    

Actual Results:  brw-------   1 root root 253,  0 Nov 28 08:25 vg00-lvroot


Expected Results:  brw-rw----   1 root disk 253,  0 Nov 28 08:25
vg00-lvroot


Additional info:
Comment 1 Alasdair Kergon 2004-11-29 19:51:17 EST
umask can be set in the lvm2 config file.

Will think about the best way to incorporate this (distribution-independent)
maybe as a libdevmapper extension configured from the lvm2 config file.
Comment 2 Alasdair Kergon 2005-01-05 15:18:01 EST
*** Bug 142123 has been marked as a duplicate of this bug. ***
Comment 3 Alasdair Kergon 2005-01-05 15:27:44 EST
The code currently does:

mknod(path, S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP, dev)
Comment 4 Alasdair Kergon 2005-01-05 15:29:50 EST
libdevmapper needs to take uid, gid + custom umask.
Comment 5 Michael J. Pawlowsky 2005-01-05 16:31:47 EST
Well the other problem is that if you try and add mapper/* for
instance  in a udev permissions file, all other files in /dev/mapper
will change permissions, owner and group but not the lv devices.
Comment 6 Alasdair Kergon 2005-01-05 16:35:11 EST
For now, I'm making the uid,gid, mode compile-time options, so that
each distribution can choose appropriate settings.  libdevmapper
interface can then be extended to make the settings per-LV if there's
sufficient demand.
Comment 7 Alasdair Kergon 2005-01-05 17:01:47 EST
Fixed in device-mapper CVS; will be included in next release.
Comment 8 Alasdair Kergon 2005-01-06 15:40:32 EST
Included in 1.00.20
Comment 9 Alasdair Kergon 2005-03-31 16:38:34 EST
*** Bug 153002 has been marked as a duplicate of this bug. ***
Comment 10 Bastien Nocera 2005-06-28 05:12:23 EDT
*** Bug 161555 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.