Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76861 - Strange logics of sys-fs/udev permission handling
Summary: Strange logics of sys-fs/udev permission handling
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 01:31 UTC by Evgeny Stambulchik
Modified: 2005-01-06 03:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.