Lines Matching refs:opts
579 struct smack_mnt_opts *opts = mnt_opts; in smack_free_mnt_opts() local
580 kfree(opts->fsdefault); in smack_free_mnt_opts()
581 kfree(opts->fsfloor); in smack_free_mnt_opts()
582 kfree(opts->fshat); in smack_free_mnt_opts()
583 kfree(opts->fsroot); in smack_free_mnt_opts()
584 kfree(opts->fstransmute); in smack_free_mnt_opts()
585 kfree(opts); in smack_free_mnt_opts()
590 struct smack_mnt_opts *opts = *mnt_opts; in smack_add_opt() local
592 if (!opts) { in smack_add_opt()
593 opts = kzalloc(sizeof(struct smack_mnt_opts), GFP_KERNEL); in smack_add_opt()
594 if (!opts) in smack_add_opt()
596 *mnt_opts = opts; in smack_add_opt()
603 if (opts->fsdefault) in smack_add_opt()
605 opts->fsdefault = s; in smack_add_opt()
608 if (opts->fsfloor) in smack_add_opt()
610 opts->fsfloor = s; in smack_add_opt()
613 if (opts->fshat) in smack_add_opt()
615 opts->fshat = s; in smack_add_opt()
618 if (opts->fsroot) in smack_add_opt()
620 opts->fsroot = s; in smack_add_opt()
623 if (opts->fstransmute) in smack_add_opt()
625 opts->fstransmute = s; in smack_add_opt()
788 struct smack_mnt_opts *opts = mnt_opts; in smack_set_mnt_opts() local
805 if (opts) in smack_set_mnt_opts()
828 if (opts) { in smack_set_mnt_opts()
829 if (opts->fsdefault) { in smack_set_mnt_opts()
830 skp = smk_import_entry(opts->fsdefault, 0); in smack_set_mnt_opts()
835 if (opts->fsfloor) { in smack_set_mnt_opts()
836 skp = smk_import_entry(opts->fsfloor, 0); in smack_set_mnt_opts()
841 if (opts->fshat) { in smack_set_mnt_opts()
842 skp = smk_import_entry(opts->fshat, 0); in smack_set_mnt_opts()
847 if (opts->fsroot) { in smack_set_mnt_opts()
848 skp = smk_import_entry(opts->fsroot, 0); in smack_set_mnt_opts()
853 if (opts->fstransmute) { in smack_set_mnt_opts()
854 skp = smk_import_entry(opts->fstransmute, 0); in smack_set_mnt_opts()