aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKees Cook <kees@ubuntu.com>2012-03-30 13:19:08 -0700
committerJohn Rigby <john.rigby@linaro.org>2012-08-15 23:46:00 -0600
commit836fad261d83be4350dd88729d3e6ebd8879fb54 (patch)
tree3af5790c71fdcb495fb371639dcc39d544567a5b /include
parentce6f759f1c8ce757ecf7a7cf2d758527e77ea7d6 (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>
Diffstat (limited to 'include')
-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 36abf2aa7e6..4c94bae1a15 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -511,8 +511,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)