aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index a5f03cb2c0f5..dc4aba21f30a 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -283,7 +283,6 @@ static int audit_set_failure(int state, uid_t loginuid)
283 return old; 283 return old;
284} 284}
285 285
286#ifdef CONFIG_NET
287void audit_send_reply(int pid, int seq, int type, int done, int multi, 286void audit_send_reply(int pid, int seq, int type, int done, int multi,
288 void *payload, int size) 287 void *payload, int size)
289{ 288{
@@ -531,35 +530,6 @@ static int __init audit_init(void)
531 audit_log(NULL, "initialized"); 530 audit_log(NULL, "initialized");
532 return 0; 531 return 0;
533} 532}
534
535#else
536/* Without CONFIG_NET, we have no skbuffs. For now, print what we have
537 * in the buffer. */
538static void audit_log_move(struct audit_buffer *ab)
539{
540 printk(KERN_ERR "%*.*s\n", ab->len, ab->len, ab->tmp);
541 ab->len = 0;
542}
543
544static inline int audit_log_drain(struct audit_buffer *ab)
545{
546 return 0;
547}
548
549/* Initialize audit support at boot time. */
550int __init audit_init(void)
551{
552 printk(KERN_INFO "audit: initializing WITHOUT netlink support\n");
553 audit_sock = NULL;
554 audit_pid = 0;
555
556 audit_initialized = 1;
557 audit_enabled = audit_default;
558 audit_log(NULL, "initialized");
559 return 0;
560}
561#endif
562
563__initcall(audit_init); 533__initcall(audit_init);
564 534
565/* Process kernel command-line parameter at boot time. audit=0 or audit=1. */ 535/* Process kernel command-line parameter at boot time. audit=0 or audit=1. */