Skip to content

Commit

Permalink
AUDIT: Exempt the whole auditd thread-group from auditing
Browse files Browse the repository at this point in the history
and not just the one thread.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Jul 13, 2005
1 parent 6c8c8ba commit 582edda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk,
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();
Expand Down Expand Up @@ -1255,7 +1255,7 @@ void audit_signal_info(int sig, struct task_struct *t)
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;
Expand Down

0 comments on commit 582edda

Please sign in to comment.