Searched refs:opts (Results 1 – 3 of 3) sorted by relevance
/security/selinux/ |
D | hooks.c | 598 struct security_mnt_opts *opts) in selinux_get_mnt_opts() argument 606 security_init_mnt_opts(opts); in selinux_get_mnt_opts() 621 opts->num_mnt_opts++; in selinux_get_mnt_opts() 626 opts->num_mnt_opts++; in selinux_get_mnt_opts() 628 opts->mnt_opts = kcalloc(opts->num_mnt_opts, sizeof(char *), GFP_ATOMIC); in selinux_get_mnt_opts() 629 if (!opts->mnt_opts) { in selinux_get_mnt_opts() 634 opts->mnt_opts_flags = kcalloc(opts->num_mnt_opts, sizeof(int), GFP_ATOMIC); in selinux_get_mnt_opts() 635 if (!opts->mnt_opts_flags) { in selinux_get_mnt_opts() 645 opts->mnt_opts[i] = context; in selinux_get_mnt_opts() 646 opts->mnt_opts_flags[i++] = FSCONTEXT_MNT; in selinux_get_mnt_opts() [all …]
|
/security/smack/ |
D | smack_lsm.c | 624 struct security_mnt_opts *opts) in smack_parse_opts_str() argument 636 opts->num_mnt_opts = 0; in smack_parse_opts_str() 692 opts->mnt_opts = kcalloc(NUM_SMK_MNT_OPTS, sizeof(char *), GFP_KERNEL); in smack_parse_opts_str() 693 if (!opts->mnt_opts) in smack_parse_opts_str() 696 opts->mnt_opts_flags = kcalloc(NUM_SMK_MNT_OPTS, sizeof(int), in smack_parse_opts_str() 698 if (!opts->mnt_opts_flags) in smack_parse_opts_str() 702 opts->mnt_opts[num_mnt_opts] = fsdefault; in smack_parse_opts_str() 703 opts->mnt_opts_flags[num_mnt_opts++] = FSDEFAULT_MNT; in smack_parse_opts_str() 706 opts->mnt_opts[num_mnt_opts] = fsfloor; in smack_parse_opts_str() 707 opts->mnt_opts_flags[num_mnt_opts++] = FSFLOOR_MNT; in smack_parse_opts_str() [all …]
|
/security/ |
D | security.c | 410 struct security_mnt_opts *opts, in security_sb_set_mnt_opts() argument 415 opts->num_mnt_opts ? -EOPNOTSUPP : 0, sb, in security_sb_set_mnt_opts() 416 opts, kern_flags, set_kern_flags); in security_sb_set_mnt_opts() 430 int security_sb_parse_opts_str(char *options, struct security_mnt_opts *opts) in security_sb_parse_opts_str() argument 432 return call_int_hook(sb_parse_opts_str, 0, options, opts); in security_sb_parse_opts_str()
|