summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2009-10-15 17:32:21 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2010-02-22 17:03:31 -0500
commit9fc6b59d46382e949526dc10c3f5bfddbe2acb92 (patch)
tree5906f16f8093a575663fe5d324926464265587a7 /Xext
parent93ff1bc5884cdfca1132af7fbc06c48e06f218c8 (diff)
xselinux: Allow SetWindowCreateContext to be used for pixmaps as well.
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xselinux_hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/xselinux_hooks.c b/Xext/xselinux_hooks.c
index 43683ff24..6e8c86d1f 100644
--- a/Xext/xselinux_hooks.c
+++ b/Xext/xselinux_hooks.c
@@ -230,7 +230,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;
}