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:
parent
93ff1bc588
commit
9fc6b59d46
|
@ -230,7 +230,7 @@ SELinuxLabelResource(XaceResourceAccessRec *rec, SELinuxSubjectRec *subj,
|
||||||
security_id_t tsid;
|
security_id_t tsid;
|
||||||
|
|
||||||
/* Check for a create context */
|
/* 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);
|
sidget(obj->sid = subj->win_create_sid);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue