summaryrefslogtreecommitdiff
path: root/udev.8
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-03-10 22:35:37 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:09 -0700
commite41016d3547ef704c0785ba197d36ef69de51260 (patch)
tree59dddd10a8d9bc90a84873e94d64650be7cf6577 /udev.8
parent3e16482d259c4a768b24a82bc0ed0e3a77954210 (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.84
1 files changed, 4 insertions, 0 deletions
diff --git a/udev.8 b/udev.8
index 8ebcf7bd99..d5d9549113 100644
--- a/udev.8
+++ b/udev.8
@@ -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: