Lines Matching refs:context_sid
344 u32 context_sid; member
612 u32 fscontext_sid = 0, context_sid = 0, rootcontext_sid = 0; in selinux_set_mnt_opts() local
667 if (opts->context_sid) { in selinux_set_mnt_opts()
668 context_sid = opts->context_sid; in selinux_set_mnt_opts()
670 context_sid)) in selinux_set_mnt_opts()
737 if (context_sid || fscontext_sid || rootcontext_sid || in selinux_set_mnt_opts()
769 if (kern_flags & SECURITY_LSM_NATIVE_LABELS && !context_sid) { in selinux_set_mnt_opts()
774 if (context_sid) { in selinux_set_mnt_opts()
776 rc = may_context_mount_sb_relabel(context_sid, sbsec, in selinux_set_mnt_opts()
780 sbsec->sid = context_sid; in selinux_set_mnt_opts()
782 rc = may_context_mount_inode_relabel(context_sid, sbsec, in selinux_set_mnt_opts()
788 rootcontext_sid = context_sid; in selinux_set_mnt_opts()
790 sbsec->mntpoint_sid = context_sid; in selinux_set_mnt_opts()
977 if (opts->context_sid || opts->defcontext_sid) in selinux_add_opt()
979 dst_sid = &opts->context_sid; in selinux_add_opt()
992 if (opts->context_sid || opts->defcontext_sid) in selinux_add_opt()
2655 if (opts->context_sid) { in selinux_sb_mnt_opts_compat()
2657 opts->context_sid)) in selinux_sb_mnt_opts_compat()
2692 if (opts->context_sid) { in selinux_sb_remount()
2694 opts->context_sid)) in selinux_sb_remount()