Home
last modified time | relevance | path

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

/Linux-v5.15/include/linux/
Dsecurity.h297 void security_free_mnt_opts(void **mnt_opts);
298 int security_sb_eat_lsm_opts(char *options, void **mnt_opts);
299 int security_sb_mnt_opts_compat(struct super_block *sb, void *mnt_opts);
300 int security_sb_remount(struct super_block *sb, void *mnt_opts);
309 void *mnt_opts,
317 int len, void **mnt_opts);
492 static inline void security_free_mnt_opts(void **mnt_opts) in security_free_mnt_opts() argument
645 void **mnt_opts) in security_sb_eat_lsm_opts() argument
651 void *mnt_opts) in security_sb_remount() argument
657 void *mnt_opts) in security_sb_mnt_opts_compat() argument
[all …]
Dlsm_hook_defs.h64 LSM_HOOK(void, LSM_RET_VOID, sb_free_mnt_opts, void *mnt_opts)
65 LSM_HOOK(int, 0, sb_eat_lsm_opts, char *orig, void **mnt_opts)
66 LSM_HOOK(int, 0, sb_mnt_opts_compat, struct super_block *sb, void *mnt_opts)
67 LSM_HOOK(int, 0, sb_remount, struct super_block *sb, void *mnt_opts)
76 LSM_HOOK(int, 0, sb_set_mnt_opts, struct super_block *sb, void *mnt_opts,
82 int len, void **mnt_opts)
/Linux-v5.15/security/
Dsecurity.c916 void security_free_mnt_opts(void **mnt_opts) in security_free_mnt_opts() argument
918 if (!*mnt_opts) in security_free_mnt_opts()
920 call_void_hook(sb_free_mnt_opts, *mnt_opts); in security_free_mnt_opts()
921 *mnt_opts = NULL; in security_free_mnt_opts()
925 int security_sb_eat_lsm_opts(char *options, void **mnt_opts) in security_sb_eat_lsm_opts() argument
927 return call_int_hook(sb_eat_lsm_opts, 0, options, mnt_opts); in security_sb_eat_lsm_opts()
932 void *mnt_opts) in security_sb_mnt_opts_compat() argument
934 return call_int_hook(sb_mnt_opts_compat, 0, sb, mnt_opts); in security_sb_mnt_opts_compat()
939 void *mnt_opts) in security_sb_remount() argument
941 return call_int_hook(sb_remount, 0, sb, mnt_opts); in security_sb_remount()
[all …]
/Linux-v5.15/fs/
Dproc_namespace.c66 static const struct proc_fs_opts mnt_opts[] = { in show_mnt_opts() local
78 for (fs_infop = mnt_opts; fs_infop->flag; fs_infop++) { in show_mnt_opts()
/Linux-v5.15/security/smack/
Dsmack_lsm.c555 static void smack_free_mnt_opts(void *mnt_opts) in smack_free_mnt_opts() argument
557 struct smack_mnt_opts *opts = mnt_opts; in smack_free_mnt_opts()
566 static int smack_add_opt(int token, const char *s, void **mnt_opts) in smack_add_opt() argument
568 struct smack_mnt_opts *opts = *mnt_opts; in smack_add_opt()
574 *mnt_opts = opts; in smack_add_opt()
695 static int smack_sb_eat_lsm_opts(char *options, void **mnt_opts) in smack_sb_eat_lsm_opts() argument
713 rc = smack_add_opt(token, arg, mnt_opts); in smack_sb_eat_lsm_opts()
716 if (*mnt_opts) in smack_sb_eat_lsm_opts()
717 smack_free_mnt_opts(*mnt_opts); in smack_sb_eat_lsm_opts()
718 *mnt_opts = NULL; in smack_sb_eat_lsm_opts()
[all …]
/Linux-v5.15/security/selinux/
Dhooks.c383 static void selinux_free_mnt_opts(void *mnt_opts) in selinux_free_mnt_opts() argument
385 struct selinux_mnt_opts *opts = mnt_opts; in selinux_free_mnt_opts()
653 void *mnt_opts, in selinux_set_mnt_opts() argument
660 struct selinux_mnt_opts *opts = mnt_opts; in selinux_set_mnt_opts()
1005 static int selinux_add_opt(int token, const char *s, void **mnt_opts) in selinux_add_opt() argument
1007 struct selinux_mnt_opts *opts = *mnt_opts; in selinux_add_opt()
1016 *mnt_opts = opts; in selinux_add_opt()
1049 void **mnt_opts) in selinux_add_mnt_opt() argument
1071 rc = selinux_add_opt(token, val, mnt_opts); in selinux_add_mnt_opt()
1079 if (*mnt_opts) { in selinux_add_mnt_opt()
[all …]
/Linux-v5.15/security/landlock/
Dfs.c489 static int hook_sb_remount(struct super_block *const sb, void *const mnt_opts) in hook_sb_remount() argument