diff options
Diffstat (limited to 'include/linux/lsm_hooks.h')
| -rw-r--r-- | include/linux/lsm_hooks.h | 17 | 
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index aaeb7fa24dc4..9a0bdf91e646 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -1461,9 +1461,10 @@ union security_list_options {  	int (*sb_alloc_security)(struct super_block *sb);  	void (*sb_free_security)(struct super_block *sb); -	int (*sb_copy_data)(char *orig, char *copy); -	int (*sb_remount)(struct super_block *sb, void *data); -	int (*sb_kern_mount)(struct super_block *sb, int flags, void *data); +	void (*sb_free_mnt_opts)(void *mnt_opts); +	int (*sb_eat_lsm_opts)(char *orig, void **mnt_opts); +	int (*sb_remount)(struct super_block *sb, void *mnt_opts); +	int (*sb_kern_mount)(struct super_block *sb);  	int (*sb_show_options)(struct seq_file *m, struct super_block *sb);  	int (*sb_statfs)(struct dentry *dentry);  	int (*sb_mount)(const char *dev_name, const struct path *path, @@ -1471,14 +1472,15 @@ union security_list_options {  	int (*sb_umount)(struct vfsmount *mnt, int flags);  	int (*sb_pivotroot)(const struct path *old_path, const struct path *new_path);  	int (*sb_set_mnt_opts)(struct super_block *sb, -				struct security_mnt_opts *opts, +				void *mnt_opts,  				unsigned long kern_flags,  				unsigned long *set_kern_flags);  	int (*sb_clone_mnt_opts)(const struct super_block *oldsb,  					struct super_block *newsb,  					unsigned long kern_flags,  					unsigned long *set_kern_flags); -	int (*sb_parse_opts_str)(char *options, struct security_mnt_opts *opts); +	int (*sb_add_mnt_opt)(const char *option, const char *val, int len, +			      void **mnt_opts);  	int (*dentry_init_security)(struct dentry *dentry, int mode,  					const struct qstr *name, void **ctx,  					u32 *ctxlen); @@ -1800,7 +1802,8 @@ struct security_hook_heads {  	struct hlist_head bprm_committed_creds;  	struct hlist_head sb_alloc_security;  	struct hlist_head sb_free_security; -	struct hlist_head sb_copy_data; +	struct hlist_head sb_free_mnt_opts; +	struct hlist_head sb_eat_lsm_opts;  	struct hlist_head sb_remount;  	struct hlist_head sb_kern_mount;  	struct hlist_head sb_show_options; @@ -1810,7 +1813,7 @@ struct security_hook_heads {  	struct hlist_head sb_pivotroot;  	struct hlist_head sb_set_mnt_opts;  	struct hlist_head sb_clone_mnt_opts; -	struct hlist_head sb_parse_opts_str; +	struct hlist_head sb_add_mnt_opt;  	struct hlist_head dentry_init_security;  	struct hlist_head dentry_create_files_as;  #ifdef CONFIG_SECURITY_PATH  |