Skip to content
Commit 96368701 authored by Paul Moore's avatar Paul Moore Committed by Paul Moore
Browse files

audit: force seccomp event logging to honor the audit_enabled flag



Previously we were emitting seccomp audit records regardless of the
audit_enabled setting, a deparature from the rest of audit.  This
patch makes seccomp auditing consistent with the rest of the audit
record generation code in that when audit_enabled=0 nothing is logged
by the audit subsystem.

The bulk of this patch is moving the CONFIG_AUDIT block ahead of the
CONFIG_AUDITSYSCALL block in include/linux/audit.h; the only real
code change was in the audit_seccomp() definition.

Signed-off-by: default avatarTony Jones <tonyj@suse.de>
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent d865e573
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment