audit: correct audit_filter_inodes() definition
After changes in commit 0590b9335a
("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>
This commit is contained in:
parent
be4187faa8
commit
bf98354280
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue