Bug 141224 - LVM devices have different permissions comparing LVM and udev
Summary: LVM devices have different permissions comparing LVM and udev
Status: RESOLVED INVALID
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Security (show other bugs)
Version: Alpha 4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Lars Marowsky-Bree
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-03 13:16 UTC by Berthold Gunreben
Modified: 2006-01-09 14:23 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Berthold Gunreben 2006-01-03 13:16:41 UTC
when using LVM, the devices for the logical volumes are created twice. The LVM subsystem creates devices, and udev creates devices as well. Both differ in their permissions, here is an example from alpha4:

linux:/dev # ls -l mapper
insgesamt 0
drwxr-xr-x  2 root root    200 2006-01-03 14:55 .
drwxrwxrwt 12 root root   7260 2006-01-03 14:55 ..
lrwxrwxrwx  1 root root     16 2006-01-03 14:55 control -> ../device-mapper
brw-------  1 root root 253, 0 2006-01-03 14:55 system-swap
brw-------  1 root root 253, 2 2006-01-03 14:55 system-swap1
brw-------  1 root root 253, 4 2006-01-03 14:55 system-swap2
brw-------  1 root root 253, 6 2006-01-03 14:55 system-swap3
brw-------  1 root root 253, 1 2006-01-03 14:55 system-v1
brw-------  1 root root 253, 3 2006-01-03 14:55 system-v2
brw-------  1 root root 253, 5 2006-01-03 14:55 system-v3
linux:/dev # ls -l dm-*
brw-r----- 1 root disk 253, 0 2006-01-03 14:55 dm-0
brw-r----- 1 root disk 253, 1 2006-01-03 14:55 dm-1
brw-r----- 1 root disk 253, 2 2006-01-03 14:55 dm-2
brw-r----- 1 root disk 253, 3 2006-01-03 14:55 dm-3
brw-r----- 1 root disk 253, 4 2006-01-03 14:55 dm-4
brw-r----- 1 root disk 253, 5 2006-01-03 14:55 dm-5
brw-r----- 1 root disk 253, 6 2006-01-03 14:55 dm-6
Comment 1 Ludwig Nussel 2006-01-03 13:38:41 UTC
minor inconsistency, root:disk 640 is the traditional mode on SUSE Linux.
Comment 2 Olaf Kirch 2006-01-04 09:21:47 UTC
Lars, this one may be for you - enjoy :)
Comment 3 Lars Marowsky-Bree 2006-01-04 15:07:22 UTC
This is normal and has been the case forever.
Comment 4 Marcus Meissner 2006-01-09 14:23:25 UTC
after getting complaint from bg  I checked with lmb. 

lmb says this is wanted behaviour.

while I consider the behaviour inconsistent we should not worry too much about it.

lets just leave it closed.