Lines Matching refs:mnt_opts
521 opts->mnt_opts = kcalloc(opts->num_mnt_opts, sizeof(char *), GFP_ATOMIC); in selinux_get_mnt_opts()
522 if (!opts->mnt_opts) { in selinux_get_mnt_opts()
538 opts->mnt_opts[i] = context; in selinux_get_mnt_opts()
545 opts->mnt_opts[i] = context; in selinux_get_mnt_opts()
552 opts->mnt_opts[i] = context; in selinux_get_mnt_opts()
562 opts->mnt_opts[i] = context; in selinux_get_mnt_opts()
566 opts->mnt_opts[i] = NULL; in selinux_get_mnt_opts()
616 char **mount_options = opts->mnt_opts; in selinux_set_mnt_opts()
993 opts->mnt_opts = kcalloc(NUM_SEL_MNT_OPTS, sizeof(char *), GFP_ATOMIC); in selinux_parse_opts_str()
994 if (!opts->mnt_opts) in selinux_parse_opts_str()
999 kfree(opts->mnt_opts); in selinux_parse_opts_str()
1004 opts->mnt_opts[num_mnt_opts] = fscontext; in selinux_parse_opts_str()
1008 opts->mnt_opts[num_mnt_opts] = context; in selinux_parse_opts_str()
1012 opts->mnt_opts[num_mnt_opts] = rootcontext; in selinux_parse_opts_str()
1016 opts->mnt_opts[num_mnt_opts] = defcontext; in selinux_parse_opts_str()
1067 if (opts->mnt_opts[i]) in selinux_write_opts()
1068 has_comma = strchr(opts->mnt_opts[i], ','); in selinux_write_opts()
1098 seq_escape(m, opts->mnt_opts[i], "\"\n\\"); in selinux_write_opts()
2601 mount_options = opts.mnt_opts; in selinux_sb_remount()