aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 0fdd90194ecc..86d91fe2d93a 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -516,7 +516,7 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk,
516 int word = AUDIT_WORD(ctx->major); 516 int word = AUDIT_WORD(ctx->major);
517 int bit = AUDIT_BIT(ctx->major); 517 int bit = AUDIT_BIT(ctx->major);
518 518
519 if (audit_pid && tsk->pid == audit_pid) 519 if (audit_pid && tsk->tgid == audit_tgid)
520 return AUDIT_DISABLED; 520 return AUDIT_DISABLED;
521 521
522 rcu_read_lock(); 522 rcu_read_lock();
@@ -1255,7 +1255,7 @@ void audit_signal_info(int sig, struct task_struct *t)
1255 extern pid_t audit_sig_pid; 1255 extern pid_t audit_sig_pid;
1256 extern uid_t audit_sig_uid; 1256 extern uid_t audit_sig_uid;
1257 1257
1258 if (unlikely(audit_pid && t->pid == audit_pid)) { 1258 if (unlikely(audit_pid && t->tgid == audit_pid)) {
1259 if (sig == SIGTERM || sig == SIGHUP) { 1259 if (sig == SIGTERM || sig == SIGHUP) {
1260 struct audit_context *ctx = current->audit_context; 1260 struct audit_context *ctx = current->audit_context;
1261 audit_sig_pid = current->pid; 1261 audit_sig_pid = current->pid;