diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2023-07-21 11:21:01 +0000 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-07-21 12:17:25 -0400 |
commit | bf98354280bff22bc9e57c698d485c9e1c0b04f3 (patch) | |
tree | 0922efdc4cfd378821da77948144cb0ba0747b6d /kernel/audit.h | |
parent | be4187faa8a48cfef572eba9e3882fb2134bdf67 (diff) |
audit: correct audit_filter_inodes() definition
After changes in commit 0590b9335a1c ("fixing audit rule ordering mess,
part 1"), audit_filter_inodes() returns void, so if CONFIG_AUDITSYSCALL
not defined, it should be do {} while(0).
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.h')
-rw-r--r-- | kernel/audit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index 94738bce40b2..a60d2840559e 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -334,7 +334,7 @@ static inline int audit_signal_info_syscall(struct task_struct *t) return 0; } -#define audit_filter_inodes(t, c) AUDIT_STATE_DISABLED +#define audit_filter_inodes(t, c) do { } while (0) #endif /* CONFIG_AUDITSYSCALL */ extern char *audit_unpack_string(void **bufp, size_t *remain, size_t len); |