Merge "audit: Checks valid value of audit_signals and tsk->audit_context"

This commit is contained in:
Linux Build Service Account 2018-05-31 05:11:33 -07:00 committed by Gerrit - the friendly Code Review server
commit 9b371fc84d

View file

@ -2248,10 +2248,11 @@ int __audit_signal_info(int sig, struct task_struct *t)
audit_sig_uid = uid;
security_task_getsecid(tsk, &audit_sig_sid);
}
if (!audit_signals || audit_dummy_context())
return 0;
}
if (!audit_signals || audit_dummy_context())
return 0;
/* optimize the common case by putting first signal recipient directly
* in audit_context */
if (!ctx->target_pid) {