summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-07-10 14:29:24 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2006-08-03 16:55:18 +0200
commit471a5c7c839114cc8b55876203aeb2817c33e3c5 (patch)
treea034011f4efe66adcdca6e21efc2e05b0c0d3e34 /include
parent[PATCH] fix audit oops with invalid operator (diff)
downloadlinux-471a5c7c839114cc8b55876203aeb2817c33e3c5.tar.xz
linux-471a5c7c839114cc8b55876203aeb2817c33e3c5.zip
[PATCH] introduce audit rules counter
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/audit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index bf196c05826c..f1bfcff497bf 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -410,6 +410,7 @@ static inline int audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat)
return __audit_mq_getsetattr(mqdes, mqstat);
return 0;
}
+extern int audit_n_rules;
#else
#define audit_alloc(t) ({ 0; })
#define audit_free(t) do { ; } while (0)
@@ -437,6 +438,7 @@ static inline int audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat)
#define audit_mq_timedreceive(d,l,p,t) ({ 0; })
#define audit_mq_notify(d,n) ({ 0; })
#define audit_mq_getsetattr(d,s) ({ 0; })
+#define audit_n_rules 0
#endif
#ifdef CONFIG_AUDIT