xselinux: Allow SetWindowCreateContext to be used for pixmaps as well.

Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Eamon Walsh 2009-10-15 17:32:21 -04:00 committed by Keith Packard
parent bec7c23e42
commit 2e0319df67

View file

@ -574,7 +574,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;
}