History

audit: rename FILTER_TYPE to FILTER_EXCLUDE

The AUDIT_FILTER_TYPE name is vague and misleading due to not describing where or when the filter is applied and obsolete due to its available filter fields having been expanded. Userspace has already renamed it from AUDIT_FILTER_TYPE to AUDIT_FILTER_EXCLUDE without checking if it already exists. The userspace maintainer assures that as long as it is set to the same value it will not be a problem since the userspace code does not treat compiler warnings as errors. If this policy changes then checks if it already exists can be added at the same time. See: https://github.com/linux-audit/audit-kernel/issues/89

Richard Guy Briggs committed 8 years ago

Commit d904ac01 parent af85d173 files · +8 −7Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/audit.h+2−1
@@ -157,7 +157,8 @@ · 156 unmodified lines
157157 #define AUDIT_FILTER_ENTRY 0x02 /* Apply rule at syscall entry */
158158 #define AUDIT_FILTER_WATCH 0x03 /* Apply rule to file system watches */
159159 #define AUDIT_FILTER_EXIT 0x04 /* Apply rule at syscall exit */
160−#define AUDIT_FILTER_TYPE 0x05 /* Apply rule at audit_log_start */
160+#define AUDIT_FILTER_EXCLUDE 0x05 /* Apply rule before record creation */
161+#define AUDIT_FILTER_TYPE AUDIT_FILTER_EXCLUDE /* obsolete misleading naming */
161162 #define AUDIT_FILTER_FS 0x06 /* Apply rule at __audit_inode_child */
162163
163164 #define AUDIT_NR_FILTERS 7