audit: rename FILTER_TYPE to FILTER_EXCLUDE
authorRichard Guy Briggs <rgb@redhat.com>
Tue, 5 Jun 2018 15:45:07 +0000 (11:45 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 19 Jun 2018 14:39:54 +0000 (10:39 -0400)
commitd904ac0320d3c4ff4e9d80e4294ca5dde803696f
tree3f504b3d96ce50dd4c9aa6724aa784c6f4c852a9
parentaf85d1772e31fed34165a1b3decef340cf4080c0
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

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/uapi/linux/audit.h
kernel/audit.c
kernel/auditfilter.c