UBUNTU: SAUCE: SECCOMP: audit: always report seccomp violations
authorKees Cook <kees@ubuntu.com>
Fri, 30 Mar 2012 20:19:08 +0000 (13:19 -0700)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:25:16 +0000 (13:25 -0700)
Violations of seccomp filters should always be reported, regardless
of audit context. This the minimal change version of what has been
proposed upstream: https://lkml.org/lkml/2012/3/23/332

Signed-off-by: Kees Cook <kees@ubuntu.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

include/linux/audit.h

index ab40f49..af4762b 100644 (file)
@@ -456,8 +456,7 @@ void audit_core_dumps(long signr);
 
 static inline void audit_seccomp(unsigned long syscall, long signr, int code)
 {
-       if (unlikely(!audit_dummy_context()))
-               __audit_seccomp(syscall, signr, code);
+       __audit_seccomp(syscall, signr, code);
 }
 
 static inline void audit_ptrace(struct task_struct *t)