summaryrefslogtreecommitdiffstats
path: root/kernel/audit.h
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2023-07-21 13:21:01 +0200
committerPaul Moore <paul@paul-moore.com>2023-07-21 18:17:25 +0200
commitbf98354280bff22bc9e57c698d485c9e1c0b04f3 (patch)
tree0922efdc4cfd378821da77948144cb0ba0747b6d /kernel/audit.h
parentaudit: include security.h unconditionally (diff)
downloadlinux-bf98354280bff22bc9e57c698d485c9e1c0b04f3.tar.xz
linux-bf98354280bff22bc9e57c698d485c9e1c0b04f3.zip
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.h2
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);