Home
last modified time | relevance | path

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

/linux-6.15/kernel/bpf/
H A Dtoken.c113 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()
186 token->allowed_cmds = mnt_opts->delegate_cmds; in bpf_token_create()
187 token->allowed_maps = mnt_opts->delegate_maps; in bpf_token_create()
188 token->allowed_progs = mnt_opts->delegate_progs; in bpf_token_create()
189 token->allowed_attachs = mnt_opts->delegate_attachs; in bpf_token_create()
/linux-6.15/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,
617 static inline void security_free_mnt_opts(void **mnt_opts) in security_free_mnt_opts() argument
775 void **mnt_opts) in security_sb_eat_lsm_opts() argument
781 void *mnt_opts) in security_sb_remount() argument
787 void *mnt_opts) in security_sb_mnt_opts_compat() argument
828 void *mnt_opts, in security_sb_set_mnt_opts() argument
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-6.15/security/
H A Dsecurity.c1451 void security_free_mnt_opts(void **mnt_opts) in security_free_mnt_opts() argument
1453 if (!*mnt_opts) in security_free_mnt_opts()
1455 call_void_hook(sb_free_mnt_opts, *mnt_opts); in security_free_mnt_opts()
1456 *mnt_opts = NULL; in security_free_mnt_opts()
1469 int security_sb_eat_lsm_opts(char *options, void **mnt_opts) in security_sb_eat_lsm_opts() argument
1471 return call_int_hook(sb_eat_lsm_opts, options, mnt_opts); in security_sb_eat_lsm_opts()
1486 void *mnt_opts) in security_sb_mnt_opts_compat() argument
1488 return call_int_hook(sb_mnt_opts_compat, sb, mnt_opts); in security_sb_mnt_opts_compat()
1503 void *mnt_opts) in security_sb_remount() argument
1505 return call_int_hook(sb_remount, sb, mnt_opts); in security_sb_remount()
[all …]
/linux-6.15/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h157 __u32 mnt_opts; /* [str] Options (comma separated, escaped) */ member
/linux-6.15/include/uapi/linux/
H A Dmount.h157 __u32 mnt_opts; /* [str] Options (comma separated, escaped) */ member
/linux-6.15/samples/vfs/
H A Dsamples-vfs.h20 __u32 mnt_opts; /* [str] Options (comma separated, escaped) */ member
H A Dtest-list-all-mounts.c146 (stmnt->mask & STATMOUNT_MNT_OPTS) ? stmnt->str + stmnt->mnt_opts : ""); in main()
H A Dmountinfo.c164 printf(",%s", &buf->str[buf->mnt_opts]); in dump_mountinfo()
/linux-6.15/fs/
H A 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()
H A Dnamespace.c5675 offp = &sm->mnt_opts; in statmount_string()
/linux-6.15/security/smack/
H A Dsmack_lsm.c555 static void smack_free_mnt_opts(void *mnt_opts) in smack_free_mnt_opts() argument
557 kfree(mnt_opts); in smack_free_mnt_opts()
562 struct smack_mnt_opts *opts = *mnt_opts; in smack_add_opt()
569 *mnt_opts = opts; in smack_add_opt()
725 static int smack_sb_eat_lsm_opts(char *options, void **mnt_opts) in smack_sb_eat_lsm_opts() argument
743 rc = smack_add_opt(token, arg, mnt_opts); in smack_sb_eat_lsm_opts()
746 if (*mnt_opts) in smack_sb_eat_lsm_opts()
747 smack_free_mnt_opts(*mnt_opts); in smack_sb_eat_lsm_opts()
748 *mnt_opts = NULL; in smack_sb_eat_lsm_opts()
782 void *mnt_opts, in smack_set_mnt_opts() argument
[all …]
/linux-6.15/security/selinux/
H A Dhooks.c381 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()
999 struct selinux_mnt_opts *opts = *mnt_opts; in selinux_add_opt()
1018 *mnt_opts = opts; in selinux_add_opt()
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()
2642 selinux_free_mnt_opts(*mnt_opts); in selinux_sb_eat_lsm_opts()
2643 *mnt_opts = NULL; in selinux_sb_eat_lsm_opts()
2650 struct selinux_mnt_opts *opts = mnt_opts; in selinux_sb_mnt_opts_compat()
[all …]
/linux-6.15/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c534 statmount_opts = sm->str + sm->mnt_opts; in test_statmount_mnt_opts()
/linux-6.15/security/landlock/
H A Dfs.c1470 static int hook_sb_remount(struct super_block *const sb, void *const mnt_opts) in hook_sb_remount() argument