chiark / gitweb /
[PATCH] allow to specify node permissions in the rule
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Thu, 11 Mar 2004 06:35:37 +0000 (22:35 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:09 +0000 (21:35 -0700)
commite41016d3547ef704c0785ba197d36ef69de51260
tree59dddd10a8d9bc90a84873e94d64650be7cf6577
parent3e16482d259c4a768b24a82bc0ed0e3a77954210
[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.
namedev.c
namedev.h
namedev_parse.c
udev.8