diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-29 13:44:01 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:00:29 -0700 |
commit | 5f72c470ad244020f65784c33eb6bcd4ae149403 (patch) | |
tree | 5d590e591eb0b4af32aa1e1ba62ebbabd01da847 /udev.h | |
parent | 927bda379205dfccd2fae8f5c54523230e0771a9 (diff) |
[PATCH] simplify permission handling
Initialize the defaults in udev_config.c instead of namedev.c.
Replace macro by expanded code. Switch to mode_t instead
of string value. Add and clarify some comments.
Diffstat (limited to 'udev.h')
-rw-r--r-- | udev.h | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -30,9 +30,7 @@ #define COMMENT_CHARACTER '#' #define NAME_SIZE 256 -#define OWNER_SIZE 32 -#define GROUP_SIZE 32 -#define MODE_SIZE 8 +#define USER_SIZE 32 #define ACTION_SIZE 32 #define DEVPATH_SIZE 256 @@ -53,8 +51,8 @@ struct udevice { char name[NAME_SIZE]; char symlink[NAME_SIZE]; - char owner[OWNER_SIZE]; - char group[GROUP_SIZE]; + char owner[USER_SIZE]; + char group[USER_SIZE]; mode_t mode; char type; int major; @@ -86,9 +84,9 @@ extern char udev_db_path[PATH_MAX+NAME_MAX]; extern char udev_permissions_filename[PATH_MAX+NAME_MAX]; extern char udev_config_filename[PATH_MAX+NAME_MAX]; extern char udev_rules_filename[PATH_MAX+NAME_MAX]; -extern char default_mode_str[MODE_SIZE]; -extern char default_owner_str[OWNER_SIZE]; -extern char default_group_str[GROUP_SIZE]; +extern mode_t default_mode; +extern char default_owner[USER_SIZE]; +extern char default_group[USER_SIZE]; extern int udev_log; extern int udev_dev_d; extern int udev_hotplug_d; |