提交 582edda5 编写于 作者: D David Woodhouse

AUDIT: Exempt the whole auditd thread-group from auditing

and not just the one thread.
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 6c8c8ba5
...@@ -516,7 +516,7 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk, ...@@ -516,7 +516,7 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk,
int word = AUDIT_WORD(ctx->major); int word = AUDIT_WORD(ctx->major);
int bit = AUDIT_BIT(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; return AUDIT_DISABLED;
rcu_read_lock(); rcu_read_lock();
...@@ -1255,7 +1255,7 @@ void audit_signal_info(int sig, struct task_struct *t) ...@@ -1255,7 +1255,7 @@ void audit_signal_info(int sig, struct task_struct *t)
extern pid_t audit_sig_pid; extern pid_t audit_sig_pid;
extern uid_t audit_sig_uid; 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) { if (sig == SIGTERM || sig == SIGHUP) {
struct audit_context *ctx = current->audit_context; struct audit_context *ctx = current->audit_context;
audit_sig_pid = current->pid; audit_sig_pid = current->pid;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册