Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

audit: add exclude filter extension to feature bitmap

Add to the audit feature bitmap to indicate availability of the
extension of the exclude filter to include PID, UID, AUID, GID, SUBJ_*.

RFE: add additional fields for use in audit filter exclude rules
https://github.com/linux-audit/audit-kernel/issues/5

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>

authored by

Richard Guy Briggs and committed by
Paul Moore
7ff89ac6 fa2bea2f

+3 -1
+3 -1
include/uapi/linux/audit.h
··· 327 327 #define AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT 0x00000001 328 328 #define AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME 0x00000002 329 329 #define AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH 0x00000004 330 + #define AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND 0x00000008 330 331 #define AUDIT_FEATURE_BITMAP_ALL (AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT | \ 331 332 AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME | \ 332 - AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH) 333 + AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH | \ 334 + AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND) 333 335 334 336 /* deprecated: AUDIT_VERSION_* */ 335 337 #define AUDIT_VERSION_LATEST AUDIT_FEATURE_BITMAP_ALL