diff options
author | Eric Paris <eparis@redhat.com> | 2008-07-07 16:49:45 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-01 18:05:32 +0200 |
commit | ee1d315663ee0b494898f813a266d6244b263b4f (patch) | |
tree | f9bf6dcacaf105431641469089e20516dd403fc5 /kernel/auditsc.c | |
parent | Fix off-by-one error in iov_iter_advance() (diff) | |
download | linux-ee1d315663ee0b494898f813a266d6244b263b4f.tar.xz linux-ee1d315663ee0b494898f813a266d6244b263b4f.zip |
[PATCH] Audit: Collect signal info when SIGUSR2 is sent to auditd
Makes the kernel audit subsystem collect information about the sending
process when that process sends SIGUSR2 to the userspace audit daemon.
SIGUSR2 is a new interesting signal to auditd telling auditd that it
should try to start logging to disk again and the error condition which
caused it to stop logging to disk (usually out of space) has been
rectified.
Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 4699950e65bd..580a5389fd99 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -2375,7 +2375,7 @@ int __audit_signal_info(int sig, struct task_struct *t) struct audit_context *ctx = tsk->audit_context; if (audit_pid && t->tgid == audit_pid) { - if (sig == SIGTERM || sig == SIGHUP || sig == SIGUSR1) { + if (sig == SIGTERM || sig == SIGHUP || sig == SIGUSR1 || sig == SIGUSR2) { audit_sig_pid = tsk->pid; if (tsk->loginuid != -1) audit_sig_uid = tsk->loginuid; |