From f6ba891213d04524b719ae654648da201665646c Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Fri, 30 Mar 2012 13:19:08 -0700 Subject: 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 Signed-off-by: Leann Ogasawara --- include/linux/audit.h | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3