Bug 169705

Summary: lvm2 sets logical volume permissions to 0700
Product: [Fedora] Fedora Reporter: Stephen Walton <stephen.walton>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: agk, dwysocha, mbroz
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: old Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-10 17:56:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Walton 2005-10-01 18:08:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7

Description of problem:
After a reboot, udev is setting the permissions and owner of legacy logical volumes (e.g., /dev/VolGroup00) to 0700 and root:root, respectively.  These should rather be set to values which allow amanda and other backup software to follow the symbolic links in /dev/VolGroup00 to /dev/mapper/VolGroup00*:  permission 0750 and owner root:disk.  

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

How reproducible:
Always

Steps to Reproduce:
1. Change the owner and permissions on a logical volume, for example, /dev/VolGroup00, to root:disk and 0750, respectively.
2. Reboot system
  

Actual Results:  Logical volume owner and permissions are reset to root:root and 0700, respectively.

Expected Results:  Owner and permissions should be set to root:disk and 0750 to be consistent with /dev/mapper/VolGroup*

Additional info:

I'm afraid I don't understand udev configuration files well enough to suggest the actual fix, which I'm sure is relatively simple.  I can't even find the rule which resets /dev/VolGroup00 to the incorrect permissions.

Comment 1 Harald Hoyer 2005-10-05 07:31:09 UTC
# ls -l /dev/Vol1/lvol0
lrwxrwxrwx  1 root root 22  3. Okt 10:22 /dev/Vol1/lvol0 -> /dev/mapper/Vol1-lvol0
# udevinfo  -q all -n /dev/Vol1/lvol0
no record for 'Vol1/lvol0' in database
# udevinfo  -q all -n /dev/mapper/Vol1-lvol0
no record for 'mapper/Vol1-lvol0' in database
# udevinfo  -q all -n /dev/mapper/control
P: /class/misc/device-mapper
N: mapper/control

These symlinks and devices are _not_ under udev control.

Comment 2 Alasdair Kergon 2007-01-10 17:56:28 UTC
This got fixed.  Plans are being discussed to integrate properly with udev.