mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-02 04:24:05 +00:00
selinux: Fix regression for Xorg
Commit 6f5317e730
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>
This commit is contained in:
parent
036a98263a
commit
85cd6da53a
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ static u16 map_class(u16 pol_value)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pol_value;
|
return SECCLASS_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void map_decision(u16 tclass, struct av_decision *avd,
|
static void map_decision(u16 tclass, struct av_decision *avd,
|
||||||
|
|
Loading…
Add table
Reference in a new issue