提交 85cd6da5 编写于 作者: S Stephen Smalley 提交者: James Morris

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: N"Justin P. Mattock" <justinmattock@gmail.com>
Signed-off-by: NStephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 036a9826
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册