Home
last modified time | relevance | path

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

/Linux-v6.6/include/linux/
Dsecurity.h303 void security_free_mnt_opts(void **mnt_opts);
304 int security_sb_eat_lsm_opts(char *options, void **mnt_opts);
305 int security_sb_mnt_opts_compat(struct super_block *sb, void *mnt_opts);
306 int security_sb_remount(struct super_block *sb, void *mnt_opts);
315 void *mnt_opts,
504 static inline void security_free_mnt_opts(void **mnt_opts) in security_free_mnt_opts() argument
662 void **mnt_opts) in security_sb_eat_lsm_opts() argument
668 void *mnt_opts) in security_sb_remount() argument
674 void *mnt_opts) in security_sb_mnt_opts_compat() argument
715 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-v6.6/security/
Dsecurity.c1256 void security_free_mnt_opts(void **mnt_opts) in security_free_mnt_opts() argument
1258 if (!*mnt_opts) in security_free_mnt_opts()
1260 call_void_hook(sb_free_mnt_opts, *mnt_opts); in security_free_mnt_opts()
1261 *mnt_opts = NULL; in security_free_mnt_opts()
1274 int security_sb_eat_lsm_opts(char *options, void **mnt_opts) in security_sb_eat_lsm_opts() argument
1276 return call_int_hook(sb_eat_lsm_opts, 0, options, mnt_opts); in security_sb_eat_lsm_opts()
1291 void *mnt_opts) in security_sb_mnt_opts_compat() argument
1293 return call_int_hook(sb_mnt_opts_compat, 0, sb, mnt_opts); in security_sb_mnt_opts_compat()
1308 void *mnt_opts) in security_sb_remount() argument
1310 return call_int_hook(sb_remount, 0, sb, mnt_opts); in security_sb_remount()
[all …]
/Linux-v6.6/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-v6.6/security/smack/
Dsmack_lsm.c569 static void smack_free_mnt_opts(void *mnt_opts) in smack_free_mnt_opts() argument
571 kfree(mnt_opts); in smack_free_mnt_opts()
574 static int smack_add_opt(int token, const char *s, void **mnt_opts) in smack_add_opt() argument
576 struct smack_mnt_opts *opts = *mnt_opts; in smack_add_opt()
583 *mnt_opts = opts; in smack_add_opt()
739 static int smack_sb_eat_lsm_opts(char *options, void **mnt_opts) in smack_sb_eat_lsm_opts() argument
757 rc = smack_add_opt(token, arg, mnt_opts); in smack_sb_eat_lsm_opts()
760 if (*mnt_opts) in smack_sb_eat_lsm_opts()
761 smack_free_mnt_opts(*mnt_opts); in smack_sb_eat_lsm_opts()
762 *mnt_opts = NULL; in smack_sb_eat_lsm_opts()
[all …]
/Linux-v6.6/security/selinux/
Dhooks.c372 static void selinux_free_mnt_opts(void *mnt_opts) in selinux_free_mnt_opts() argument
374 kfree(mnt_opts); in selinux_free_mnt_opts()
622 void *mnt_opts, in selinux_set_mnt_opts() argument
629 struct selinux_mnt_opts *opts = mnt_opts; in selinux_set_mnt_opts()
990 static int selinux_add_opt(int token, const char *s, void **mnt_opts) in selinux_add_opt() argument
992 struct selinux_mnt_opts *opts = *mnt_opts; in selinux_add_opt()
1011 *mnt_opts = opts; in selinux_add_opt()
2576 static int selinux_sb_eat_lsm_opts(char *options, void **mnt_opts) in selinux_sb_eat_lsm_opts() argument
2606 rc = selinux_add_opt(token, arg, mnt_opts); in selinux_sb_eat_lsm_opts()
2630 if (*mnt_opts) { in selinux_sb_eat_lsm_opts()
[all …]
/Linux-v6.6/security/landlock/
Dfs.c1077 static int hook_sb_remount(struct super_block *const sb, void *const mnt_opts) in hook_sb_remount() argument