Home
last modified time | relevance | path

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

/security/
Dinode.c40 static int securityfs_fill_super(struct super_block *sb, struct fs_context *fc) in securityfs_fill_super() argument
54 static int securityfs_get_tree(struct fs_context *fc) in securityfs_get_tree() argument
56 return get_tree_single(fc, securityfs_fill_super); in securityfs_get_tree()
63 static int securityfs_init_fs_context(struct fs_context *fc) in securityfs_init_fs_context() argument
65 fc->ops = &securityfs_context_ops; in securityfs_init_fs_context()
Dsecurity.c894 int security_fs_context_submount(struct fs_context *fc, struct super_block *reference) in security_fs_context_submount() argument
896 return call_int_hook(fs_context_submount, 0, fc, reference); in security_fs_context_submount()
899 int security_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc) in security_fs_context_dup() argument
901 return call_int_hook(fs_context_dup, 0, fc, src_fc); in security_fs_context_dup()
904 int security_fs_context_parse_param(struct fs_context *fc, in security_fs_context_parse_param() argument
913 trc = hp->hook.fs_context_parse_param(fc, param); in security_fs_context_parse_param()
/security/smack/
Dsmack_lsm.c621 static int smack_fs_context_submount(struct fs_context *fc, in smack_fs_context_submount() argument
631 fc->security = ctx; in smack_fs_context_submount()
671 static int smack_fs_context_dup(struct fs_context *fc, in smack_fs_context_dup() argument
679 fc->security = kzalloc(sizeof(struct smack_mnt_opts), GFP_KERNEL); in smack_fs_context_dup()
680 if (!fc->security) in smack_fs_context_dup()
682 dst = fc->security; in smack_fs_context_dup()
730 static int smack_fs_context_parse_param(struct fs_context *fc, in smack_fs_context_parse_param() argument
736 opt = fs_parse(fc, smack_fs_parameters, param, &result); in smack_fs_context_parse_param()
740 rc = smack_add_opt(opt, param->string, &fc->security); in smack_fs_context_parse_param()
Dsmackfs.c2874 static int smk_fill_super(struct super_block *sb, struct fs_context *fc) in smk_fill_super() argument
2951 static int smk_get_tree(struct fs_context *fc) in smk_get_tree() argument
2953 return get_tree_single(fc, smk_fill_super); in smk_get_tree()
2964 static int smk_init_fs_context(struct fs_context *fc) in smk_init_fs_context() argument
2966 fc->ops = &smk_context_ops; in smk_init_fs_context()
/security/apparmor/
Dapparmorfs.c169 static int apparmorfs_fill_super(struct super_block *sb, struct fs_context *fc) in apparmorfs_fill_super() argument
182 static int apparmorfs_get_tree(struct fs_context *fc) in apparmorfs_get_tree() argument
184 return get_tree_single(fc, apparmorfs_fill_super); in apparmorfs_get_tree()
191 static int apparmorfs_init_fs_context(struct fs_context *fc) in apparmorfs_init_fs_context() argument
193 fc->ops = &apparmorfs_context_ops; in apparmorfs_init_fs_context()
/security/selinux/
Dselinuxfs.c2056 static int sel_fill_super(struct super_block *sb, struct fs_context *fc) in sel_fill_super() argument
2185 static int sel_get_tree(struct fs_context *fc) in sel_get_tree() argument
2187 return get_tree_single(fc, sel_fill_super); in sel_get_tree()
2194 static int sel_init_fs_context(struct fs_context *fc) in sel_init_fs_context() argument
2196 fc->ops = &sel_context_ops; in sel_init_fs_context()
Dhooks.c2769 static int selinux_fs_context_submount(struct fs_context *fc, in selinux_fs_context_submount() argument
2792 fc->security = opts; in selinux_fs_context_submount()
2796 static int selinux_fs_context_dup(struct fs_context *fc, in selinux_fs_context_dup() argument
2804 fc->security = kmemdup(src, sizeof(*src), GFP_KERNEL); in selinux_fs_context_dup()
2805 return fc->security ? 0 : -ENOMEM; in selinux_fs_context_dup()
2817 static int selinux_fs_context_parse_param(struct fs_context *fc, in selinux_fs_context_parse_param() argument
2823 opt = fs_parse(fc, selinux_fs_parameters, param, &result); in selinux_fs_context_parse_param()
2827 return selinux_add_opt(opt, param->string, &fc->security); in selinux_fs_context_parse_param()