Lines Matching refs:opts

627 		struct security_mnt_opts *opts)  in smack_parse_opts_str()  argument
639 opts->num_mnt_opts = 0; in smack_parse_opts_str()
695 opts->mnt_opts = kcalloc(NUM_SMK_MNT_OPTS, sizeof(char *), GFP_ATOMIC); in smack_parse_opts_str()
696 if (!opts->mnt_opts) in smack_parse_opts_str()
699 opts->mnt_opts_flags = kcalloc(NUM_SMK_MNT_OPTS, sizeof(int), in smack_parse_opts_str()
701 if (!opts->mnt_opts_flags) { in smack_parse_opts_str()
702 kfree(opts->mnt_opts); in smack_parse_opts_str()
707 opts->mnt_opts[num_mnt_opts] = fsdefault; in smack_parse_opts_str()
708 opts->mnt_opts_flags[num_mnt_opts++] = FSDEFAULT_MNT; in smack_parse_opts_str()
711 opts->mnt_opts[num_mnt_opts] = fsfloor; in smack_parse_opts_str()
712 opts->mnt_opts_flags[num_mnt_opts++] = FSFLOOR_MNT; in smack_parse_opts_str()
715 opts->mnt_opts[num_mnt_opts] = fshat; in smack_parse_opts_str()
716 opts->mnt_opts_flags[num_mnt_opts++] = FSHAT_MNT; in smack_parse_opts_str()
719 opts->mnt_opts[num_mnt_opts] = fsroot; in smack_parse_opts_str()
720 opts->mnt_opts_flags[num_mnt_opts++] = FSROOT_MNT; in smack_parse_opts_str()
723 opts->mnt_opts[num_mnt_opts] = fstransmute; in smack_parse_opts_str()
724 opts->mnt_opts_flags[num_mnt_opts++] = FSTRANS_MNT; in smack_parse_opts_str()
727 opts->num_mnt_opts = num_mnt_opts; in smack_parse_opts_str()
756 struct security_mnt_opts *opts, in smack_set_mnt_opts() argument
766 int num_opts = opts->num_mnt_opts; in smack_set_mnt_opts()
775 switch (opts->mnt_opts_flags[i]) { in smack_set_mnt_opts()
777 skp = smk_import_entry(opts->mnt_opts[i], 0); in smack_set_mnt_opts()
783 skp = smk_import_entry(opts->mnt_opts[i], 0); in smack_set_mnt_opts()
789 skp = smk_import_entry(opts->mnt_opts[i], 0); in smack_set_mnt_opts()
795 skp = smk_import_entry(opts->mnt_opts[i], 0); in smack_set_mnt_opts()
801 skp = smk_import_entry(opts->mnt_opts[i], 0); in smack_set_mnt_opts()
856 struct security_mnt_opts opts; in smack_sb_kern_mount() local
858 security_init_mnt_opts(&opts); in smack_sb_kern_mount()
863 rc = smack_parse_opts_str(options, &opts); in smack_sb_kern_mount()
868 rc = smack_set_mnt_opts(sb, &opts, 0, NULL); in smack_sb_kern_mount()
871 security_free_mnt_opts(&opts); in smack_sb_kern_mount()