From 9fc6b59d46382e949526dc10c3f5bfddbe2acb92 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Thu, 15 Oct 2009 17:32:21 -0400 Subject: xselinux: Allow SetWindowCreateContext to be used for pixmaps as well. Signed-off-by: Eamon Walsh Reviewed-by: Keith Packard --- Xext/xselinux_hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xext') 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; } -- cgit v1.2.3