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>
This commit is contained in:
Eamon Walsh 2009-10-15 17:32:21 -04:00
parent 93ff1bc588
commit 9fc6b59d46

View File

@ -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;
}