return avc_has_perm(tsec->sid, isec->sid, sclass, perms, &ad);
return avc_has_perm(tsec->sid, isec->sid, isec->sclass, perms, &ad);
static int ipc_has_perm(struct kern_ipc_perm *ipc_perms,			u16 sclass, u32 perms){	struct task_security_struct *tsec;	struct ipc_security_struct *isec;	struct avc_audit_data ad;	tsec = current->security;	isec = ipc_perms->security;	AVC_AUDIT_DATA_INIT(&ad, IPC);	ad.u.ipc_id = ipc_perms->key;	return avc_has_perm(tsec->sid, isec->sid, sclass, perms, &ad);}