summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-10-15 17:32:21 -0400
committerKeith Packard <keithp@keithp.com>2009-10-27 14:32:09 -0700
commit2e0319df678155929c35117ef9ca25b99ebfd8eb (patch)
tree8d344f2146c860eaeb40ba08c6bd219e3ba51ab5
parentbec7c23e428c5d9d90aad998a4119eb8416af7da (diff)
xselinux: Allow SetWindowCreateContext to be used for pixmaps as well.
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--Xext/xselinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/xselinux.c b/Xext/xselinux.c
index 808ec37ab..c9b0ad35e 100644
--- a/Xext/xselinux.c
+++ b/Xext/xselinux.c
@@ -574,7 +574,7 @@ SELinuxLabelResource(XaceResourceAccessRec *rec, SELinuxSubjectRec *subj,
security_id_t tsid;
/* Check for a create context */
- if (rec->rtype == RT_WINDOW && subj->win_create_sid) {
+ if (rec->rtype & RC_DRAWABLE && subj->win_create_sid) {
sidget(obj->sid = subj->win_create_sid);
return Success;
}