Commit 327b9eeb authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

audit_match_signal() and friends are used only if CONFIG_AUDITSYSCALL is set

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b4e1ded3
...@@ -311,6 +311,7 @@ int audit_match_class(int class, unsigned syscall) ...@@ -311,6 +311,7 @@ int audit_match_class(int class, unsigned syscall)
return classes[class][AUDIT_WORD(syscall)] & AUDIT_BIT(syscall); return classes[class][AUDIT_WORD(syscall)] & AUDIT_BIT(syscall);
} }
#ifdef CONFIG_AUDITSYSCALL
static inline int audit_match_class_bits(int class, u32 *mask) static inline int audit_match_class_bits(int class, u32 *mask)
{ {
int i; int i;
...@@ -347,6 +348,7 @@ static int audit_match_signal(struct audit_entry *entry) ...@@ -347,6 +348,7 @@ static int audit_match_signal(struct audit_entry *entry)
return 1; return 1;
} }
} }
#endif
/* Common user-space to kernel rule translation. */ /* Common user-space to kernel rule translation. */
static inline struct audit_entry *audit_to_entry_common(struct audit_rule *rule) static inline struct audit_entry *audit_to_entry_common(struct audit_rule *rule)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment