|
@@ -200,7 +200,8 @@ int aa_audit(int type, struct aa_profile *profile, gfp_t gfp,
|
|
|
|
|
|
if (sa->aad->type == AUDIT_APPARMOR_KILL)
|
|
if (sa->aad->type == AUDIT_APPARMOR_KILL)
|
|
(void)send_sig_info(SIGKILL, NULL,
|
|
(void)send_sig_info(SIGKILL, NULL,
|
|
- sa->u.tsk ? sa->u.tsk : current);
|
|
|
|
|
|
+ sa->type == LSM_AUDIT_DATA_TASK && sa->u.tsk ?
|
|
|
|
+ sa->u.tsk : current);
|
|
|
|
|
|
if (sa->aad->type == AUDIT_APPARMOR_ALLOWED)
|
|
if (sa->aad->type == AUDIT_APPARMOR_ALLOWED)
|
|
return complain_error(sa->aad->error);
|
|
return complain_error(sa->aad->error);
|