diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2018-02-14 21:47:43 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-02-15 14:36:29 -0500 |
commit | 5260ecc2e0480cc7e184901ab4c3721d0c2765e3 (patch) | |
tree | 42ad7e5a7cf607997d5bfae0654f21d7557c1ceb /kernel/auditfilter.c | |
parent | 6387440e15db1c9ee58028433cd87291cae488e7 (diff) | |
download | linux-stable-5260ecc2e0480cc7e184901ab4c3721d0c2765e3.tar.gz linux-stable-5260ecc2e0480cc7e184901ab4c3721d0c2765e3.tar.bz2 linux-stable-5260ecc2e0480cc7e184901ab4c3721d0c2765e3.zip |
audit: deprecate the AUDIT_FILTER_ENTRY filter
The audit entry filter has been long deprecated with userspace support
finally removed in audit-v2.6.7 and plans to remove kernel support have
existed since kernel-v2.6.31.
Remove it.
Since removing the audit entry filter, test for early return before
setting up any context state.
Passes audit-testsuite.
See: https://github.com/linux-audit/audit-kernel/issues/6
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/auditfilter.c')
-rw-r--r-- | kernel/auditfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 739a6d2d4df8..d7a807e81451 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -258,8 +258,8 @@ static inline struct audit_entry *audit_to_entry_common(struct audit_rule_data * goto exit_err; #ifdef CONFIG_AUDITSYSCALL case AUDIT_FILTER_ENTRY: - if (rule->action == AUDIT_ALWAYS) - goto exit_err; + pr_err("AUDIT_FILTER_ENTRY is deprecated\n"); + goto exit_err; case AUDIT_FILTER_EXIT: case AUDIT_FILTER_TASK: #endif |