summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-10-15 17:32:21 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2009-10-15 17:32:21 -0400
commitcfc09c3618ca194bca0b7ca0bf8334afe9327a36 (patch)
tree811355a12c3663aae0a702c259bb60e295aae241
parentb14bbce6b420a3891cab886d759175c6a16d54e5 (diff)
xselinux: Allow SetWindowCreateContext to be used for pixmaps as well.
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
-rw-r--r--Xext/xselinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/xselinux.c b/Xext/xselinux.c
index 8709b20e3..e4a95cd86 100644
--- a/Xext/xselinux.c
+++ b/Xext/xselinux.c
@@ -584,7 +584,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;
}