Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 76861

Summary: Strange logics of sys-fs/udev permission handling
Product: Gentoo Linux Reporter: Evgeny Stambulchik <fnevgeny>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Evgeny Stambulchik 2005-01-06 01:31:04 UTC
I had /etc/udev/permissions.d/99-local.permissions containing a single line for my scanner:

# scanner
sg3:root:disk:0666

However, this was ignored by udevstart. Apparently, once a match is found (/etc/udev/permissions.d/50-udev.permissions has a generic sg*:root:disk:0660 setting), you can't override it with a more specific rule. I solved the problem by renaming my local file to 00-local.permissions so it's parsed before the defaults, but it's really weird IMHO.

Reproducible: Always
Steps to Reproduce:
Comment 1 Sven Wegener gentoo-dev 2005-01-06 03:02:40 UTC
udev doesn't handle it on a best match basis, but on a first match basis. udev
reads the files in increasing order and takes the first match it finds. Your
own settings should go into a file smaller than 50-udev.permissions so that they
are found before 50-udev.permissions.