]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
audit_match_signal() and friends are used only if CONFIG_AUDITSYSCALL is set
authorAl Viro <viro@ftp.linux.org.uk>
Tue, 15 May 2007 19:37:10 +0000 (20:37 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 16 May 2007 01:56:37 +0000 (18:56 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/auditfilter.c

index 6c61263ff96de8b320bae34feb8a2212f0ff50c5..74cc0fc6bb8169894cd7820f3877432796a7e628 100644 (file)
@@ -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)