summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-10-15 21:32:21 (GMT)
committerEamon Walsh <ewalsh@tycho.nsa.gov>2009-10-15 21:32:21 (GMT)
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 8709b20..e4a95cd 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;
}