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>