Commit 85cd6da53a8073d3f4503f56e4ea6cddccbb1c7f

Authored by Stephen Smalley
Committed by James Morris
1 parent 036a98263a

selinux: Fix regression for Xorg

Commit 6f5317e730505d5cbc851c435a2dfe3d5a21d343 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:  "Justin P. Mattock" <justinmattock@gmail.com>
Signed-off-by:  Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

security/selinux/ss/services.c
... ... @@ -213,7 +213,7 @@
213 213 return i;
214 214 }
215 215  
216   - return pol_value;
  216 + return SECCLASS_NULL;
217 217 }
218 218  
219 219 static void map_decision(u16 tclass, struct av_decision *avd,