aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKees Cook <kees@ubuntu.com>2012-03-30 13:19:08 -0700
committerJohn Rigby <john.rigby@linaro.org>2012-06-25 15:04:06 -0600
commit9d53f820f8a4f03ec8fe6df3c4f1db0743d9da95 (patch)
tree62d93f2bafad0084fc299dff37002c0f482c9c12
parentf2401538b30aa6662a16e3867d573c0edfdf297d (diff)
UBUNTU: SAUCE: SECCOMP: audit: always report seccomp violations
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>
-rw-r--r--include/linux/audit.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 22f292a917a..4a2f0d6acfb 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -510,8 +510,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)