xselinux: Allow SetWindowCreateContext to be used for pixmaps as well.
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
This commit is contained in:
parent
5560f270c8
commit
f874af7a85
|
@ -554,7 +554,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user