Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85cd6da5 authored by Stephen Smalley's avatar Stephen Smalley Committed by James Morris
Browse files

selinux: Fix regression for Xorg



Commit 6f5317e7 introduced a bug in the
handling of userspace object classes that is causing breakage for Xorg
when XSELinux is enabled.  Fix the bug by changing map_class() to return
SECCLASS_NULL when the class cannot be mapped to a kernel object class.

Reported-by: default avatar"Justin P. Mattock" <justinmattock@gmail.com>
Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 036a9826
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ static u16 map_class(u16 pol_value)
			return i;
	}

	return pol_value;
	return SECCLASS_NULL;
}

static void map_decision(u16 tclass, struct av_decision *avd,