and not just the one thread.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
int word = AUDIT_WORD(ctx->major);
int bit = AUDIT_BIT(ctx->major);
- if (audit_pid && tsk->pid == audit_pid)
+ if (audit_pid && tsk->tgid == audit_tgid)
return AUDIT_DISABLED;
rcu_read_lock();
extern pid_t audit_sig_pid;
extern uid_t audit_sig_uid;
- if (unlikely(audit_pid && t->pid == audit_pid)) {
+ if (unlikely(audit_pid && t->tgid == audit_pid)) {
if (sig == SIGTERM || sig == SIGHUP) {
struct audit_context *ctx = current->audit_context;
audit_sig_pid = current->pid;