diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-03-10 22:35:37 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:09 -0700 |
commit | e41016d3547ef704c0785ba197d36ef69de51260 (patch) | |
tree | 59dddd10a8d9bc90a84873e94d64650be7cf6577 /udev.8 | |
parent | 3e16482d259c4a768b24a82bc0ed0e3a77954210 (diff) |
[PATCH] allow to specify node permissions in the rule
This allows to set the permissions along with the rule.
This is not a general replacement for the permissions config, but it
may be easier sometimes for the user to specify the permissions along
with the rule, cause the permissions config file wants the final node
name to match, which seems sometimes a bit difficult to guess, if
format % chars are used in the NAME field.
Any value not given in the rule is still be read from the permissions
file or set to the default. This one will also work:
BUS="usb", KERNEL="video*", NAME="my-%k", OWNER="$local"
A few words to man page are also added and add_perm_dev() is moved into
namedev_parse.c where it belongs to.
Diffstat (limited to 'udev.8')
-rw-r--r-- | udev.8 | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -220,6 +220,10 @@ to the symlink list of the rule which will create the node. This makes it possible to specify additional symlinks in a possibly separate rules file, while the device nodes are maintained by the distribution provided rules file. +.TP +.B OWNER, GROUP, MODE +The permissions for this device. Every specified value overwrites the value +given in the permissions file. .P .RB "The " NAME " ," SYMLINK " and " PROGRAM fields support simple printf-like string substitution: |