diff options
author | greg@kroah.com <greg@kroah.com> | 2003-12-03 18:33:58 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:05 -0700 |
commit | 61219c756ad0ad622decaf81b92a558ba2a1bc59 (patch) | |
tree | 89ef5f166351de968a61e445ec90eb624e5fe04d /namedev.h | |
parent | 206d3623c6454b6f34002d0d27e9aa2d00e4de06 (diff) |
[PATCH] fix permission handling logic
Now we can handle wildcards properly within the permission file.
Diffstat (limited to 'namedev.h')
-rw-r--r-- | namedev.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -62,8 +62,12 @@ struct config_device { char place[PLACE_SIZE]; char kernel_name[NAME_SIZE]; char exec_program[FILE_SIZE]; + char name[NAME_SIZE]; +}; + +struct perm_device { + struct list_head node; - /* what to set the device to */ char name[NAME_SIZE]; char owner[OWNER_SIZE]; char group[GROUP_SIZE]; @@ -71,6 +75,7 @@ struct config_device { }; extern struct list_head config_device_list; +extern struct list_head perm_device_list; extern int namedev_init(void); extern int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *dev); @@ -78,8 +83,11 @@ extern int namedev_init_permissions(void); extern int namedev_init_rules(void); extern int add_config_dev(struct config_device *new_dev); +extern int add_perm_dev(struct perm_device *new_dev); extern void dump_config_dev(struct config_device *dev); extern void dump_config_dev_list(void); +extern void dump_perm_dev(struct perm_device *dev); +extern void dump_perm_dev_list(void); extern int get_pair(char **orig_string, char **left, char **right); |