aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBadari Pulavarty <pbadari@yahoo.com>2005-07-02 08:49:07 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-07-02 08:49:07 -0400
commit13774024da8ebdf17212c0f5a83f5b0681a649eb (patch)
tree22a847f6c112b2dc24181082c31000a515bcf00e
parentd2f6409584e2c62ffad81690562330ff3bf4a458 (diff)
AUDIT: Fix definition of audit_log_start() if audit not enabled
audit_log_start() seems to take 3 arguments, but its defined to take only 2 when AUDIT is turned off. security/selinux/avc.c:553:75: macro "audit_log_start" passed 3 arguments, but takes just 2 Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r--include/linux/audit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 38999f827a36..c22405fc2ddf 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -286,7 +286,7 @@ extern void audit_log_lost(const char *message);
286extern struct semaphore audit_netlink_sem; 286extern struct semaphore audit_netlink_sem;
287#else 287#else
288#define audit_log(c,t,f,...) do { ; } while (0) 288#define audit_log(c,t,f,...) do { ; } while (0)
289#define audit_log_start(c,t) ({ NULL; }) 289#define audit_log_start(c,g,t) ({ NULL; })
290#define audit_log_vformat(b,f,a) do { ; } while (0) 290#define audit_log_vformat(b,f,a) do { ; } while (0)
291#define audit_log_format(b,f,...) do { ; } while (0) 291#define audit_log_format(b,f,...) do { ; } while (0)
292#define audit_log_end(b) do { ; } while (0) 292#define audit_log_end(b) do { ; } while (0)