Home
last modified time | relevance | path

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

/linux-6.12.1/kernel/bpf/
Dtoken.c114 struct bpf_mount_opts *mnt_opts; in bpf_token_create() local
154 mnt_opts = sb->s_fs_info; in bpf_token_create()
155 if (mnt_opts->delegate_cmds == 0 && in bpf_token_create()
156 mnt_opts->delegate_maps == 0 && in bpf_token_create()
157 mnt_opts->delegate_progs == 0 && in bpf_token_create()
158 mnt_opts->delegate_attachs == 0) in bpf_token_create()
187 token->allowed_cmds = mnt_opts->delegate_cmds; in bpf_token_create()
188 token->allowed_maps = mnt_opts->delegate_maps; in bpf_token_create()
189 token->allowed_progs = mnt_opts->delegate_progs; in bpf_token_create()
190 token->allowed_attachs = mnt_opts->delegate_attachs; in bpf_token_create()
/linux-6.12.1/include/linux/
Dsecurity.h321 void security_free_mnt_opts(void **mnt_opts);
322 int security_sb_eat_lsm_opts(char *options, void **mnt_opts);
323 int security_sb_mnt_opts_compat(struct super_block *sb, void *mnt_opts);
324 int security_sb_remount(struct super_block *sb, void *mnt_opts);
333 void *mnt_opts,
554 static inline void security_free_mnt_opts(void **mnt_opts) in security_free_mnt_opts() argument
712 void **mnt_opts) in security_sb_eat_lsm_opts() argument
718 void *mnt_opts) in security_sb_remount() argument
724 void *mnt_opts) in security_sb_mnt_opts_compat() argument
765 void *mnt_opts, in security_sb_set_mnt_opts() argument
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-6.12.1/security/
Dsecurity.c1446 void security_free_mnt_opts(void **mnt_opts) in security_free_mnt_opts() argument
1448 if (!*mnt_opts) in security_free_mnt_opts()
1450 call_void_hook(sb_free_mnt_opts, *mnt_opts); in security_free_mnt_opts()
1451 *mnt_opts = NULL; in security_free_mnt_opts()
1464 int security_sb_eat_lsm_opts(char *options, void **mnt_opts) in security_sb_eat_lsm_opts() argument
1466 return call_int_hook(sb_eat_lsm_opts, options, mnt_opts); in security_sb_eat_lsm_opts()
1481 void *mnt_opts) in security_sb_mnt_opts_compat() argument
1483 return call_int_hook(sb_mnt_opts_compat, sb, mnt_opts); in security_sb_mnt_opts_compat()
1498 void *mnt_opts) in security_sb_remount() argument
1500 return call_int_hook(sb_remount, sb, mnt_opts); in security_sb_remount()
[all …]
/linux-6.12.1/tools/perf/trace/beauty/include/uapi/linux/
Dmount.h157 __u32 mnt_opts; /* [str] Mount options of the mount */ member
/linux-6.12.1/include/uapi/linux/
Dmount.h157 __u32 mnt_opts; /* [str] Mount options of the mount */ member
/linux-6.12.1/fs/
Dproc_namespace.c66 static const struct proc_fs_opts mnt_opts[] = { in show_vfsmnt_opts() local
78 for (fs_infop = mnt_opts; fs_infop->flag; fs_infop++) { in show_vfsmnt_opts()
Dnamespace.c5064 sm->mnt_opts = seq->count; in statmount_string()
/linux-6.12.1/security/smack/
Dsmack_lsm.c571 static void smack_free_mnt_opts(void *mnt_opts) in smack_free_mnt_opts() argument
573 kfree(mnt_opts); in smack_free_mnt_opts()
576 static int smack_add_opt(int token, const char *s, void **mnt_opts) in smack_add_opt() argument
578 struct smack_mnt_opts *opts = *mnt_opts; in smack_add_opt()
585 *mnt_opts = opts; in smack_add_opt()
741 static int smack_sb_eat_lsm_opts(char *options, void **mnt_opts) in smack_sb_eat_lsm_opts() argument
759 rc = smack_add_opt(token, arg, mnt_opts); in smack_sb_eat_lsm_opts()
762 if (*mnt_opts) in smack_sb_eat_lsm_opts()
763 smack_free_mnt_opts(*mnt_opts); in smack_sb_eat_lsm_opts()
764 *mnt_opts = NULL; in smack_sb_eat_lsm_opts()
[all …]
/linux-6.12.1/security/selinux/
Dhooks.c379 static void selinux_free_mnt_opts(void *mnt_opts) in selinux_free_mnt_opts() argument
381 kfree(mnt_opts); in selinux_free_mnt_opts()
629 void *mnt_opts, in selinux_set_mnt_opts() argument
636 struct selinux_mnt_opts *opts = mnt_opts; in selinux_set_mnt_opts()
997 static int selinux_add_opt(int token, const char *s, void **mnt_opts) in selinux_add_opt() argument
999 struct selinux_mnt_opts *opts = *mnt_opts; in selinux_add_opt()
1018 *mnt_opts = opts; in selinux_add_opt()
2587 static int selinux_sb_eat_lsm_opts(char *options, void **mnt_opts) in selinux_sb_eat_lsm_opts() argument
2617 rc = selinux_add_opt(token, arg, mnt_opts); in selinux_sb_eat_lsm_opts()
2641 if (*mnt_opts) { in selinux_sb_eat_lsm_opts()
[all …]
/linux-6.12.1/tools/testing/selftests/filesystems/statmount/
Dstatmount_test.c517 statmount_opts = sm->str + sm->mnt_opts; in test_statmount_mnt_opts()
/linux-6.12.1/security/landlock/
Dfs.c1363 static int hook_sb_remount(struct super_block *const sb, void *const mnt_opts) in hook_sb_remount() argument