BACKPORT: seccomp: remove duplicated failure logging
authorKees Cook <keescook@chromium.org>
Sun, 26 Feb 2012 19:56:12 +0000 (11:56 -0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:16:45 +0000 (15:16 -0700)
commit7587a4f2ea52e5972cb851e5c03cb4c1f94b203d
tree0a8d47f7dcfe599b79ac6bfae8333be0aeb4546d
parent6f0438f06a88de6bd751f769fb94bd667014e0c3
BACKPORT: seccomp: remove duplicated failure logging

[NOTE! When backporting to 3.2, we dropped audit_seccomp. 3.4+ supports
       this but we still need to integrate better.
]

This consolidates the seccomp filter error logging path and adds more
details to the audit log.

Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Will Drewry <wad@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
v18: make compat= permanent in the record
v15: added a return code to the audit_seccomp path by wad@chromium.org
     (suggested by eparis@redhat.com)
v*: original by keescook@chromium.org

Change-Id: I57dc5224f9a359f2c6e0a6d404b7ad2479522372

BUG=chromium-os:27878
TEST=none. Part of a much larger stack that really should merge together.

Change-Id: I9b7b317f6729fdc4cc417338f97bdd8cebad442a
Reviewed-on: https://gerrit.chromium.org/gerrit/21364
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
include/linux/audit.h
kernel/auditsc.c
kernel/seccomp.c