]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: Fix regression for Xorg
authorStephen Smalley <sds@tycho.nsa.gov>
Fri, 25 Mar 2011 14:13:43 +0000 (10:13 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 7 Apr 2011 16:00:12 +0000 (12:00 -0400)
commitd808fc7436ee361ef45d71ef8bde2ef8d6491015
tree3eb37c447b2023c86d2c2cadc7b84656c134b646
parent3c33ade9fc02815a3860ebc3c2b117dd14cda27d
selinux: Fix regression for Xorg

Commit 27422978be9c5259aca1929af496fd3002c9417e 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>
security/selinux/ss/services.c