aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorChris Wright <chrisw@osdl.org>2005-05-11 05:52:45 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-11 05:52:45 -0400
commit804a6a49d874841a98ebea3247ad2e672812ad6a (patch)
tree84bd717927666811d55f31346387f8cb99dff346 /kernel/auditsc.c
parent5a241d77039a2632e81070619d5733258728f8bd (diff)
Audit requires CONFIG_NET
Audit now actually requires netlink. So make it depend on CONFIG_NET, and remove the inline dependencies on CONFIG_NET. Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index f1bf66510cd3..680bb928343b 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -226,7 +226,6 @@ static inline int audit_del_rule(struct audit_rule *rule,
226 return -EFAULT; /* No matching rule */ 226 return -EFAULT; /* No matching rule */
227} 227}
228 228
229#ifdef CONFIG_NET
230/* Copy rule from user-space to kernel-space. Called during 229/* Copy rule from user-space to kernel-space. Called during
231 * AUDIT_ADD. */ 230 * AUDIT_ADD. */
232static int audit_copy_rule(struct audit_rule *d, struct audit_rule *s) 231static int audit_copy_rule(struct audit_rule *d, struct audit_rule *s)
@@ -305,7 +304,6 @@ int audit_receive_filter(int type, int pid, int uid, int seq, void *data,
305 304
306 return err; 305 return err;
307} 306}
308#endif
309 307
310/* Compare a task_struct with an audit_rule. Return 1 on match, 0 308/* Compare a task_struct with an audit_rule. Return 1 on match, 0
311 * otherwise. */ 309 * otherwise. */