Skip to contentSkip to conversation

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

PATCH New Al Viro 1 participant 1 message May 15, 2007 Audit

lore
Share & tools
lore

Al Viro

author
#0 lore raw

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

---
 kernel/auditfilter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/auditfilter.c +2 -0
index 6c61263..74cc0fc 100644
@@ -311,6 +311,7 @@ int audit_match_class(int class, unsigned syscall)
 	return classes[class][AUDIT_WORD(syscall)] & AUDIT_BIT(syscall);
 }
 
+#ifdef CONFIG_AUDITSYSCALL
 static inline int audit_match_class_bits(int class, u32 *mask)
 {
 	int i;
@@ -347,6 +348,7 @@ static int audit_match_signal(struct audit_entry *entry)
 		return 1;
 	}
 }
+#endif
 
 /* Common user-space to kernel rule translation. */
 static inline struct audit_entry *audit_to_entry_common(struct audit_rule *rule)
Signature · 1 line
1.5.0-rc2.GIT