Home
last modified time | relevance | path

Searched refs:context_sid (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/security/selinux/
Dhooks.c656 u32 fscontext_sid = 0, context_sid = 0, rootcontext_sid = 0; in selinux_set_mnt_opts() local
714 rc = parse_sid(sb, opts->context, &context_sid); in selinux_set_mnt_opts()
718 context_sid)) in selinux_set_mnt_opts()
785 if (context_sid || fscontext_sid || rootcontext_sid || in selinux_set_mnt_opts()
817 if (kern_flags & SECURITY_LSM_NATIVE_LABELS && !context_sid) { in selinux_set_mnt_opts()
822 if (context_sid) { in selinux_set_mnt_opts()
824 rc = may_context_mount_sb_relabel(context_sid, sbsec, in selinux_set_mnt_opts()
828 sbsec->sid = context_sid; in selinux_set_mnt_opts()
830 rc = may_context_mount_inode_relabel(context_sid, sbsec, in selinux_set_mnt_opts()
836 rootcontext_sid = context_sid; in selinux_set_mnt_opts()
[all …]