diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2019-05-10 12:21:49 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-05-21 22:18:25 -0400 |
commit | b48345aafb203803ccda4488cb5409b1ed435c0a (patch) | |
tree | 025ceffb2d6792a15b495c64d9de565c5baf2c9d /kernel/signal.c | |
parent | a188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff) | |
download | linux-b48345aafb203803ccda4488cb5409b1ed435c0a.tar.gz linux-b48345aafb203803ccda4488cb5409b1ed435c0a.tar.bz2 linux-b48345aafb203803ccda4488cb5409b1ed435c0a.zip |
audit: deliver signal_info regarless of syscall
When a process signals the audit daemon (shutdown, rotate, resume,
reconfig) but syscall auditing is not enabled, we still want to know the
identity of the process sending the signal to the audit daemon.
Move audit_signal_info() out of syscall auditing to general auditing but
create a new function audit_signal_info_syscall() to take care of the
syscall dependent parts for when syscall auditing is enabled.
Please see the github kernel audit issue
https://github.com/linux-audit/audit-kernel/issues/111
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index a1eb44dc9ff5..5cfc8611867b 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -44,6 +44,7 @@ #include <linux/posix-timers.h> #include <linux/livepatch.h> #include <linux/cgroup.h> +#include <linux/audit.h> #define CREATE_TRACE_POINTS #include <trace/events/signal.h> @@ -53,7 +54,6 @@ #include <asm/unistd.h> #include <asm/siginfo.h> #include <asm/cacheflush.h> -#include "audit.h" /* audit_signal_info() */ /* * SLAB caches for signal bits. |