diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditsc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index dff2a2325655..9f03ac205e1f 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -67,6 +67,7 @@ | |||
67 | #include <linux/binfmts.h> | 67 | #include <linux/binfmts.h> |
68 | #include <linux/highmem.h> | 68 | #include <linux/highmem.h> |
69 | #include <linux/syscalls.h> | 69 | #include <linux/syscalls.h> |
70 | #include <asm/syscall.h> | ||
70 | #include <linux/capability.h> | 71 | #include <linux/capability.h> |
71 | #include <linux/fs_struct.h> | 72 | #include <linux/fs_struct.h> |
72 | #include <linux/compat.h> | 73 | #include <linux/compat.h> |
@@ -2488,11 +2489,9 @@ void __audit_seccomp(unsigned long syscall, long signr, int code) | |||
2488 | if (unlikely(!ab)) | 2489 | if (unlikely(!ab)) |
2489 | return; | 2490 | return; |
2490 | audit_log_task(ab); | 2491 | audit_log_task(ab); |
2491 | audit_log_format(ab, " sig=%ld", signr); | 2492 | audit_log_format(ab, " sig=%ld arch=%x syscall=%ld compat=%d ip=0x%lx code=0x%x", |
2492 | audit_log_format(ab, " syscall=%ld", syscall); | 2493 | signr, syscall_get_arch(), syscall, is_compat_task(), |
2493 | audit_log_format(ab, " compat=%d", is_compat_task()); | 2494 | KSTK_EIP(current), code); |
2494 | audit_log_format(ab, " ip=0x%lx", KSTK_EIP(current)); | ||
2495 | audit_log_format(ab, " code=0x%x", code); | ||
2496 | audit_log_end(ab); | 2495 | audit_log_end(ab); |
2497 | } | 2496 | } |
2498 | 2497 | ||