diff options
Diffstat (limited to 'include/linux/fs_parser.h')
| -rw-r--r-- | include/linux/fs_parser.h | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/fs_parser.h b/include/linux/fs_parser.h index d3350979115f..6cf713a7e6c6 100644 --- a/include/linux/fs_parser.h +++ b/include/linux/fs_parser.h @@ -28,7 +28,7 @@ typedef int fs_param_type(struct p_log *,   */  fs_param_type fs_param_is_bool, fs_param_is_u32, fs_param_is_s32, fs_param_is_u64,  	fs_param_is_enum, fs_param_is_string, fs_param_is_blob, fs_param_is_blockdev, -	fs_param_is_path, fs_param_is_fd; +	fs_param_is_path, fs_param_is_fd, fs_param_is_uid, fs_param_is_gid;  /*   * Specification of the type of value a parameter wants. @@ -57,6 +57,8 @@ struct fs_parse_result {  		int		int_32;		/* For spec_s32/spec_enum */  		unsigned int	uint_32;	/* For spec_u32{,_octal,_hex}/spec_enum */  		u64		uint_64;	/* For spec_u64 */ +		kuid_t		uid; +		kgid_t		gid;  	};  }; @@ -131,6 +133,8 @@ static inline bool fs_validate_description(const char *name,  #define fsparam_bdev(NAME, OPT)	__fsparam(fs_param_is_blockdev, NAME, OPT, 0, NULL)  #define fsparam_path(NAME, OPT)	__fsparam(fs_param_is_path, NAME, OPT, 0, NULL)  #define fsparam_fd(NAME, OPT)	__fsparam(fs_param_is_fd, NAME, OPT, 0, NULL) +#define fsparam_uid(NAME, OPT) __fsparam(fs_param_is_uid, NAME, OPT, 0, NULL) +#define fsparam_gid(NAME, OPT) __fsparam(fs_param_is_gid, NAME, OPT, 0, NULL)  /* String parameter that allows empty argument */  #define fsparam_string_empty(NAME, OPT) \  |