Home
last modified time | relevance | path

Searched refs:mnt_opts (Results 1 – 12 of 12) sorted by relevance

/linux/kernel/bpf/
H A Dtoken.c115 struct bpf_mount_opts *mnt_opts; in bpf_token_create() local
153 mnt_opts = sb->s_fs_info; in bpf_token_create()
154 if (mnt_opts->delegate_cmds == 0 && in bpf_token_create()
155 mnt_opts->delegate_maps == 0 && in bpf_token_create()
156 mnt_opts->delegate_progs == 0 && in bpf_token_create()
157 mnt_opts->delegate_attachs == 0) in bpf_token_create()
183 token->allowed_cmds = mnt_opts->delegate_cmds; in bpf_token_create()
184 token->allowed_maps = mnt_opts->delegate_maps; in bpf_token_create()
185 token->allowed_progs = mnt_opts->delegate_progs; in bpf_token_create()
186 token->allowed_attachs = mnt_opts->delegate_attachs; in bpf_token_create()
/linux/include/linux/
H A Dsecurity.h371 void security_free_mnt_opts(void **mnt_opts);
372 int security_sb_eat_lsm_opts(char *options, void **mnt_opts);
373 int security_sb_mnt_opts_compat(struct super_block *sb, void *mnt_opts);
374 int security_sb_remount(struct super_block *sb, void *mnt_opts);
383 void *mnt_opts,
634 static inline void security_free_mnt_opts(void **mnt_opts) in security_init()
792 void **mnt_opts) in security_sb_remount()
798 void *mnt_opts) in security_sb_mnt_opts_compat()
804 void *mnt_opts) in security_sb_kern_mount()
845 void *mnt_opts, in security_sb_clone_mnt_opts()
625 security_free_mnt_opts(void ** mnt_opts) security_free_mnt_opts() argument
783 security_sb_eat_lsm_opts(char * options,void ** mnt_opts) security_sb_eat_lsm_opts() argument
789 security_sb_remount(struct super_block * sb,void * mnt_opts) security_sb_remount() argument
795 security_sb_mnt_opts_compat(struct super_block * sb,void * mnt_opts) security_sb_mnt_opts_compat() argument
836 security_sb_set_mnt_opts(struct super_block * sb,void * mnt_opts,unsigned long kern_flags,unsigned long * set_kern_flags) security_sb_set_mnt_opts() argument
[all...]
H A Dlsm_hook_defs.h65 LSM_HOOK(void, LSM_RET_VOID, sb_free_mnt_opts, void *mnt_opts)
66 LSM_HOOK(int, 0, sb_eat_lsm_opts, char *orig, void **mnt_opts)
67 LSM_HOOK(int, 0, sb_mnt_opts_compat, struct super_block *sb, void *mnt_opts)
68 LSM_HOOK(int, 0, sb_remount, struct super_block *sb, void *mnt_opts)
77 LSM_HOOK(int, 0, sb_set_mnt_opts, struct super_block *sb, void *mnt_opts,
/linux/security/
H A Dsecurity.c979 * @mnt_opts: LSM processed mount options
983 void security_free_mnt_opts(void **mnt_opts)
985 if (!*mnt_opts)
987 call_void_hook(sb_free_mnt_opts, *mnt_opts); in security_sb_eat_lsm_opts() argument
988 *mnt_opts = NULL; in security_sb_eat_lsm_opts()
995 * @mnt_opts: LSM processed mount options
997 * Eat (scan @options) and save them in @mnt_opts.
1001 int security_sb_eat_lsm_opts(char *options, void **mnt_opts)
1003 return call_int_hook(sb_eat_lsm_opts, options, mnt_opts); in security_sb_mnt_opts_compat()
1010 * @mnt_opts
969 security_free_mnt_opts(void ** mnt_opts) security_free_mnt_opts() argument
1004 security_sb_mnt_opts_compat(struct super_block * sb,void * mnt_opts) security_sb_mnt_opts_compat() argument
1021 security_sb_remount(struct super_block * sb,void * mnt_opts) security_sb_remount() argument
1132 security_sb_set_mnt_opts(struct super_block * sb,void * mnt_opts,unsigned long kern_flags,unsigned long * set_kern_flags) security_sb_set_mnt_opts() argument
[all...]
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h159 __u32 mnt_opts; /* [str] Options (comma separated, escaped) */ member
/linux/include/uapi/linux/
H A Dmount.h160 __u32 mnt_opts; /* [str] Options (comma separated, escaped) */ member
/linux/security/smack/
H A Dsmack_lsm.c563 static void smack_free_mnt_opts(void *mnt_opts) in smack_free_mnt_opts() argument
565 kfree(mnt_opts); in smack_free_mnt_opts()
568 static int smack_add_opt(int token, const char *s, void **mnt_opts) in smack_add_opt() argument
570 struct smack_mnt_opts *opts = *mnt_opts; in smack_add_opt()
577 *mnt_opts = opts; in smack_add_opt()
733 static int smack_sb_eat_lsm_opts(char *options, void **mnt_opts) in smack_sb_eat_lsm_opts() argument
751 rc = smack_add_opt(token, arg, mnt_opts); in smack_sb_eat_lsm_opts()
754 if (*mnt_opts) in smack_sb_eat_lsm_opts()
755 smack_free_mnt_opts(*mnt_opts); in smack_sb_eat_lsm_opts()
756 *mnt_opts in smack_sb_eat_lsm_opts()
790 smack_set_mnt_opts(struct super_block * sb,void * mnt_opts,unsigned long kern_flags,unsigned long * set_kern_flags) smack_set_mnt_opts() argument
[all...]
/linux/samples/vfs/
H A Dmountinfo.c164 printf(",%s", &buf->str[buf->mnt_opts]); in dump_mountinfo()
/linux/security/selinux/
H A Dhooks.c390 static void selinux_free_mnt_opts(void *mnt_opts) in selinux_free_mnt_opts() argument
392 kfree(mnt_opts); in selinux_free_mnt_opts()
642 void *mnt_opts, in selinux_set_mnt_opts() argument
649 struct selinux_mnt_opts *opts = mnt_opts; in selinux_set_mnt_opts()
1024 static int selinux_add_opt(int token, const char *s, void **mnt_opts) in selinux_add_opt() argument
1026 struct selinux_mnt_opts *opts = *mnt_opts; in selinux_add_opt()
1045 *mnt_opts = opts; in selinux_add_opt()
2652 static int selinux_sb_eat_lsm_opts(char *options, void **mnt_opts) in selinux_sb_eat_lsm_opts() argument
2682 rc = selinux_add_opt(token, arg, mnt_opts); in selinux_sb_eat_lsm_opts()
2706 if (*mnt_opts) { in selinux_sb_eat_lsm_opts()
2713 selinux_sb_mnt_opts_compat(struct super_block * sb,void * mnt_opts) selinux_sb_mnt_opts_compat() argument
2758 selinux_sb_remount(struct super_block * sb,void * mnt_opts) selinux_sb_remount() argument
[all...]
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c507 statmount_opts = sm->str + sm->mnt_opts; in test_statmount_mnt_opts()
/linux/security/landlock/
H A Dfs.c1582 static int hook_sb_remount(struct super_block *const sb, void *const mnt_opts) in hook_sb_remount() argument
/linux/fs/
H A Dnamespace.c5780 offp = &sm->mnt_opts; in statmount_string()