diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-10-15 17:32:21 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-10-15 17:32:21 -0400 |
commit | cfc09c3618ca194bca0b7ca0bf8334afe9327a36 (patch) | |
tree | 811355a12c3663aae0a702c259bb60e295aae241 | |
parent | b14bbce6b420a3891cab886d759175c6a16d54e5 (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.c | 2 |
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; } |