source: ksyslog/trunk/ksyslog.c @ 270

Revision 270, 15.8 KB checked in by atzm, 10 years ago (diff)

revert r269, this causes cpu soft lockup

RevLine 
[232]1/*
2 * ksyslog: In-kernel syslog receiver
3 * Copyright(C) 2013 Atzm WATANABE All rights reserved
4 * Distributed under the GPL
5 */
6
[246]7#include <linux/version.h>
[232]8#include <linux/module.h>
[243]9#include <linux/inet.h>
[232]10#include <linux/ip.h>
11#include <linux/udp.h>
12#include <linux/namei.h>
[263]13#include <linux/fsnotify.h>
[246]14#include <linux/proc_fs.h>
[250]15#include <linux/u64_stats_sync.h>
16#include <linux/percpu.h>
[232]17#include <net/udp.h>
[246]18#include "compat.h"
[232]19#include "ksyslog.h"
20
[242]21static struct ksyslog_queue ksyslog_queue;
[232]22static struct socket *ksyslog_rcv_sk = NULL;
23
[270]24static struct delayed_work ksyslog_work;
[232]25static struct workqueue_struct *ksyslog_wq = NULL;
26
27#ifdef CONFIG_PROC_FS
28static struct proc_dir_entry *ksyslog_procdir = NULL;
29static struct proc_dir_entry *ksyslog_proc_queue = NULL;
[250]30static struct proc_dir_entry *ksyslog_proc_size = NULL;
31static struct proc_dir_entry *ksyslog_proc_stats = NULL;
[232]32#endif
33
34static char *ksyslog_host = "0.0.0.0";
35static ushort ksyslog_port = 514;
36static char *ksyslog_path = "/var/log/ksyslog.log";
[250]37static ulong ksyslog_queue_size_max = 4096;
[232]38static ulong ksyslog_flush_interval = 45;  /* milliseconds */
39
[268]40static DEFINE_SPINLOCK(ksyslog_write_lock);
41
[232]42module_param(ksyslog_host, charp, 0444);
43module_param(ksyslog_port, ushort, 0444);
44module_param(ksyslog_path, charp, 0644);
[250]45module_param(ksyslog_queue_size_max, ulong, 0644);
[232]46module_param(ksyslog_flush_interval, ulong, 0644);
47
[250]48static int
[241]49ksyslog_queue_init(struct ksyslog_queue *queue)
50{
51        memset(queue, 0, sizeof(*queue));
52        INIT_LIST_HEAD(&queue->head);
[242]53        spin_lock_init(&queue->lock);
[250]54        atomic64_set(&queue->size, 0);
55        queue->stats = alloc_percpu(struct ksyslog_stats);
56        if (unlikely(queue->stats == NULL))
57                return -ENOMEM;
58        return 0;
[241]59}
60
[250]61static void
62ksyslog_queue_uninit(struct ksyslog_queue *queue)
63{
64        if (likely(queue->stats))
65                free_percpu(queue->stats);
66        queue->stats = NULL;
67}
68
[232]69static int
70ksyslog_close(struct file *file)
71{
[263]72        int err;
73        mm_segment_t oldfs;
74
75        oldfs = get_fs();
76        set_fs(get_ds());
77
78        err = filp_close(file, NULL);
79
80        set_fs(oldfs);
81        return err;
[232]82}
83
84static struct file *
85ksyslog_open(const char *path)
86{
87        struct file *file;
[243]88        struct path ppath;
[232]89        mm_segment_t oldfs;
90
91        oldfs = get_fs();
92        set_fs(get_ds());
93
[243]94        if (unlikely(kern_path(path, LOOKUP_OPEN|LOOKUP_FOLLOW, &ppath)))
[232]95                file = filp_open(path, O_CREAT|O_WRONLY|O_APPEND|O_LARGEFILE, 0600);
96        else
97                file = filp_open(path, O_WRONLY|O_APPEND|O_LARGEFILE, 0);
98
[234]99        if (unlikely(IS_ERR(file)))
[232]100                goto out;
101
[264]102        compat_fsnotify_open(file);
[263]103
[234]104        if (unlikely(S_ISDIR(file->f_path.dentry->d_inode->i_mode))) {
[232]105                ksyslog_close(file);
106                file = ERR_PTR(-EISDIR);
107                goto out;
108        }
109
[234]110        if (unlikely(file->f_pos < 0)) {
[232]111                ksyslog_close(file);
112                file = ERR_PTR(-EIO);
113                goto out;
114        }
115
116out:
117        set_fs(oldfs);
118        return file;
119}
120
121static int
122ksyslog_write(struct file *file, const char *buf, const size_t length)
123{
124        int err;
125        mm_segment_t oldfs;
126
127        oldfs = get_fs();
128        set_fs(get_ds());
129
130        err = vfs_write(file, (__force void __user *)buf, length, &file->f_pos);
131
132        set_fs(oldfs);
133        return err;
134}
135
136static void
[234]137ksyslog_drop_warning(const struct ksyslog_entry *entry)
[232]138{
[268]139        net_warn_ratelimited("ksyslog: dropped: %llu %s.%s %u.%u.%u.%u %.*s\n",
140                             timeval_to_ns(&entry->tv) / 1000 / 1000 / 1000,
141                             ksyslog_facility_str(entry->facility),
142                             ksyslog_severity_str(entry->severity),
143                             entry->saddr.addr8[0], entry->saddr.addr8[1],
144                             entry->saddr.addr8[2], entry->saddr.addr8[3],
145                             (int)entry->length, entry->data);
[232]146}
147
148static struct ksyslog_entry *
[234]149ksyslog_entry_create(const struct sk_buff *skb,
150                     const struct iphdr *iph, const struct udphdr *udph)
[232]151{
152        struct ksyslog_entry *entry;
[235]153        unsigned int priority, facility, severity, month, day, hour, minute, second;
154        unsigned char *start, month_s[4];
155        struct tm tm;
[232]156        int length, i;
157
[235]158        if (sscanf(skb->data, "<%3u>%3s %2u %2u:%2u:%2u ",
159                   &priority, month_s, &day, &hour, &minute, &second) != 6)
[232]160                return ERR_PTR(-EINVAL);
161
162        start = memchr(skb->data, '>', 5);
163        if (start == NULL)
164                return ERR_PTR(-EINVAL);
165        start++;
166
167        facility = priority >> 3;
168        severity = priority & 7;
169
170        if (facility >= __KSYSLOG_F_MAX)
171                return ERR_PTR(-EINVAL);
172        if (severity >= __KSYSLOG_S_MAX)
173                return ERR_PTR(-EINVAL);
174
[235]175        month = ksyslog_month_num(month_s);
176        if (!month)
177                return ERR_PTR(-EINVAL);
178        if (day > 31)
179                return ERR_PTR(-EINVAL);
180        if (hour > 23)
181                return ERR_PTR(-EINVAL);
182        if (minute > 59)
183                return ERR_PTR(-EINVAL);
184        if (second > 59)
185                return ERR_PTR(-EINVAL);
186
[232]187        entry = kzalloc(sizeof(*entry), GFP_ATOMIC);
[234]188        if (unlikely(entry == NULL))
[232]189                return ERR_PTR(-ENOMEM);
190
191        length = skb->len - (start - skb->data);
192        entry->data = kzalloc(length, GFP_ATOMIC);
[234]193        if (unlikely(entry->data == NULL)) {
[232]194                kfree(entry);
195                return ERR_PTR(-ENOMEM);
196        }
197
198        if (skb->tstamp.tv64)
199                entry->tv = ktime_to_timeval(skb->tstamp);
200        else
201                do_gettimeofday(&entry->tv);
202
[235]203        time_to_tm(entry->tv.tv_sec, 0, &tm);
204        entry->time = mktime(tm.tm_year + 1900, month, day, hour, minute, second);
205
206        entry->priority = priority;
[234]207        entry->facility = facility;
208        entry->severity = severity;
209
[232]210        entry->daddr.addr32 = iph->daddr;
211        entry->saddr.addr32 = iph->saddr;
212
213        entry->dport = udph->dest;
214        entry->sport = udph->source;
215
216        entry->length = length;
217        memcpy(entry->data, start, length);
218
219        for (i = 0; i < length; i++)
[234]220                if (unlikely(entry->data[i] == '\n'))
[232]221                        entry->data[i] = ' ';
222
223        return entry;
224}
225
226static void
227ksyslog_entry_free(struct rcu_head *head)
228{
229        struct ksyslog_entry *entry = container_of(head, struct ksyslog_entry, rcu);
230        kfree(entry->data);
231        kfree(entry);
232}
233
234static int
235ksyslog_entry_add(struct ksyslog_queue *queue, struct ksyslog_entry *entry)
236{
[250]237        if (unlikely(atomic64_read(&queue->size) >= ksyslog_queue_size_max))
[232]238                return -ENOBUFS;
239        list_add_tail_rcu(&entry->list, &queue->head);
[250]240        WARN_ON(atomic64_inc_return(&queue->size) > ksyslog_queue_size_max);
[232]241        return 0;
242}
243
244static void
245ksyslog_entry_del(struct ksyslog_queue *queue, struct ksyslog_entry *entry, bool free)
246{
[250]247        WARN_ON(atomic64_dec_return(&queue->size) < 0);
[232]248        list_del_rcu(&entry->list);
249        if (free)
250                call_rcu(&entry->rcu, ksyslog_entry_free);
251}
252
253static void
254ksyslog_entry_destroy(struct ksyslog_queue *queue)
255{
256        struct ksyslog_entry *entry, *next;
257
258        list_for_each_entry_safe(entry, next, &queue->head, list)
259                ksyslog_entry_del(queue, entry, true);
260}
261
[268]262static int
263ksyslog_entry_format(char **buf, const struct ksyslog_entry *entry)
[232]264{
[268]265        *buf = kzalloc(54 + entry->length + 2, GFP_ATOMIC);
266        if (unlikely(*buf == NULL))
267                return -ENOMEM;
[232]268
[268]269        return sprintf(*buf, "%llu %s.%s %u.%u.%u.%u %.*s\n",
270                       timeval_to_ns(&entry->tv) / 1000 / 1000 / 1000,
271                       ksyslog_facility_str(entry->facility),
272                       ksyslog_severity_str(entry->severity),
273                       entry->saddr.addr8[0], entry->saddr.addr8[1],
274                       entry->saddr.addr8[2], entry->saddr.addr8[3],
275                       (int)entry->length, entry->data);
276}
277
278static bool
279ksyslog_entry_write(struct file *file, struct ksyslog_entry *entry)
280{
281        int length;
282        char *buf;
283
284        length = ksyslog_entry_format(&buf, entry);
285
286        if (unlikely(length < 0))
287                return false;
288
289        if (unlikely(ksyslog_write(file, buf, length) != length)) {
290                kfree(buf);
291                return false;
[232]292        }
[268]293
294        kfree(buf);
295        return true;
[232]296}
297
298static void
299ksyslog_work_register(unsigned long timer)
300{
[270]301        queue_delayed_work(ksyslog_wq, &ksyslog_work, timer * HZ / 1000);
[232]302}
303
304static void
305ksyslog_work_unregister(void)
306{
[270]307        cancel_delayed_work_sync(&ksyslog_work);
[232]308}
309
310static void
311ksyslog_work_handler(struct work_struct *work)
312{
313        struct file *file = NULL;
[268]314        struct ksyslog_entry *entry;
[232]315
[268]316        file = ksyslog_open(ksyslog_path);
317        if (unlikely(IS_ERR(file)))
[250]318                goto out;
[232]319
[268]320        while (true) {
321                bool write_ok;
[232]322
[242]323                spin_lock_bh(&ksyslog_queue.lock);
[268]324                entry = list_first_or_null_rcu(&ksyslog_queue.head,
325                                               struct ksyslog_entry, list);
326                if (!entry) {
327                        spin_unlock_bh(&ksyslog_queue.lock);
328                        break;
329                }
330                ksyslog_entry_del(&ksyslog_queue, entry, false);
[242]331                spin_unlock_bh(&ksyslog_queue.lock);
[232]332
[268]333                spin_lock(&ksyslog_write_lock);
334                write_ok = ksyslog_entry_write(file, entry);
335                spin_unlock(&ksyslog_write_lock);
[232]336
[268]337                if (likely(write_ok)) {
338                        ksyslog_stats_add_write(&ksyslog_queue, entry->length);
339                } else {
[250]340                        ksyslog_stats_add_drop(&ksyslog_queue, entry->length);
[232]341                        ksyslog_drop_warning(entry);
342                }
[268]343
344                call_rcu(&entry->rcu, ksyslog_entry_free);
[232]345        }
[234]346
[232]347        ksyslog_close(file);
348
349out:
[270]350        ksyslog_work_register(ksyslog_flush_interval);
[232]351}
352
353static int
354ksyslog_rcv(struct sock *sk, struct sk_buff *skb)
355{
356        int err;
357        struct iphdr *iph;
358        struct udphdr *udph;
359        struct ksyslog_entry *entry;
360
[250]361        if (unlikely(skb_linearize(skb))) {
362                ksyslog_stats_add_drop(&ksyslog_queue, skb->len);
363                goto out;
364        }
[232]365
366        iph = ip_hdr(skb);
367        udph = udp_hdr(skb);
368
[250]369        if (unlikely(!skb_pull(skb, sizeof(*udph)))) {
370                ksyslog_stats_add_drop(&ksyslog_queue, skb->len);
371                goto out;
372        }
[232]373
374        entry = ksyslog_entry_create(skb, iph, udph);
[250]375        if (unlikely(IS_ERR(entry))) {
376                if (PTR_ERR(entry) == -EINVAL) {
377                        ksyslog_stats_add_discard(&ksyslog_queue, skb->len);
378                        goto out;
379                }
[232]380
[250]381                ksyslog_stats_add_drop(&ksyslog_queue, skb->len);
382                goto out;
383        }
384
[242]385        spin_lock_bh(&ksyslog_queue.lock);
[232]386        err = ksyslog_entry_add(&ksyslog_queue, entry);
[242]387        spin_unlock_bh(&ksyslog_queue.lock);
[232]388
[241]389        if (unlikely(err)) {
[250]390                ksyslog_stats_add_drop(&ksyslog_queue, entry->length);
[241]391                ksyslog_drop_warning(entry);
[232]392                ksyslog_entry_free(&entry->rcu);
[250]393                goto out;
[241]394        }
[232]395
396out:
397        consume_skb(skb);
398        return 0;
399}
400
401#ifdef CONFIG_PROC_FS
402static void *
[240]403ksyslog_rculist_seq_start(struct seq_file *seq, loff_t *pos)
[232]404{
405        struct list_head *lh, *head = seq->private;
406        loff_t ppos = *pos;
407
408        rcu_read_lock();
409
410        __list_for_each_rcu(lh, head)
411                if (ppos-- == 0)
412                        return lh;
413
414        return NULL;
415}
416
417static void *
[240]418ksyslog_rculist_seq_next(struct seq_file *seq, void *v, loff_t *pos)
[232]419{
420        struct list_head *lh = rcu_dereference(((struct list_head *)v)->next);
421        ++(*pos);
422        return lh == seq->private ? NULL : lh;
423}
424
425static void
[240]426ksyslog_rculist_seq_stop(struct seq_file *seq, void *v)
[232]427{
428        rcu_read_unlock();
429}
430
431static int
432ksyslog_queue_seq_show(struct seq_file *seq, void *v)
433{
434        const struct ksyslog_entry *entry = list_entry_rcu(v, struct ksyslog_entry, list);
435
[233]436        seq_printf(seq, "%llu %s.%s %u.%u.%u.%u %.*s\n",
[232]437                   timeval_to_ns(&entry->tv) / 1000 / 1000 / 1000,
[233]438                   ksyslog_facility_str(entry->facility),
439                   ksyslog_severity_str(entry->severity),
[232]440                   entry->saddr.addr8[0], entry->saddr.addr8[1],
441                   entry->saddr.addr8[2], entry->saddr.addr8[3],
442                   (int)entry->length, entry->data);
443
444        return 0;
445}
446
447static struct seq_operations ksyslog_queue_seq_ops = {
[240]448        .start = ksyslog_rculist_seq_start,
449        .next  = ksyslog_rculist_seq_next,
450        .stop  = ksyslog_rculist_seq_stop,
[232]451        .show  = ksyslog_queue_seq_show,
452};
453
454static int
455ksyslog_queue_seq_open(struct inode *inode, struct file *file)
456{
457        int err = seq_open(file, &ksyslog_queue_seq_ops);
458
459        if (!err)
[246]460                ((struct seq_file *)file->private_data)->private = PDE_DATA(inode);
[232]461
462        return err;
463}
464
465static struct file_operations ksyslog_queue_fops = {
466        .owner   = THIS_MODULE,
467        .open    = ksyslog_queue_seq_open,
468        .read    = seq_read,
469        .llseek  = seq_lseek,
470        .release = seq_release,
471};
472
473static int
[250]474ksyslog_size_seq_show(struct seq_file *seq, void *v)
[240]475{
[250]476        seq_printf(seq, "%lu\n", atomic64_read(&ksyslog_queue.size));
[240]477        return 0;
478}
479
480static int
[250]481ksyslog_size_seq_open(struct inode *inode, struct file *file)
[240]482{
[250]483        return single_open(file, ksyslog_size_seq_show, PDE_DATA(inode));
[240]484}
485
[241]486static int
[250]487ksyslog_stats_seq_show(struct seq_file *seq, void *v)
[241]488{
[250]489        int i;
490        struct ksyslog_stats stats;
[241]491
[250]492        memset(&stats, 0, sizeof(stats));
[241]493
[250]494        for_each_possible_cpu(i) {
495                const struct ksyslog_stats *percpu_stats;
496                struct ksyslog_stats local_stats;
497                unsigned int start;
498
499                percpu_stats = per_cpu_ptr(ksyslog_queue.stats, i);
500
501                do {
502                        start = u64_stats_fetch_begin_bh(&percpu_stats->sync);
503                        local_stats = *percpu_stats;
504                } while (u64_stats_fetch_retry_bh(&percpu_stats->sync, start));
505
506                stats.write_bytes += local_stats.write_bytes;
507                stats.write_packets += local_stats.write_packets;
508                stats.drop_bytes += local_stats.drop_bytes;
509                stats.drop_packets += local_stats.drop_packets;
510                stats.discard_bytes += local_stats.discard_bytes;
511                stats.discard_packets += local_stats.discard_packets;
512        }
513
514        seq_puts(seq,   "{\n");
515        seq_puts(seq,   \"write\": {\n");
516        seq_printf(seq, "    \"bytes\":   \"%llu\",\n", stats.write_bytes);
517        seq_printf(seq, "    \"packets\": \"%llu\"\n", stats.write_packets);
518        seq_puts(seq,   "  },\n");
519        seq_puts(seq,   \"drop\": {\n");
520        seq_printf(seq, "    \"bytes\":   \"%llu\",\n", stats.drop_bytes);
521        seq_printf(seq, "    \"packets\": \"%llu\"\n", stats.drop_packets);
522        seq_puts(seq,   "  },\n");
523        seq_puts(seq,   \"discard\": {\n");
524        seq_printf(seq, "    \"bytes\":   \"%llu\",\n", stats.discard_bytes);
525        seq_printf(seq, "    \"packets\": \"%llu\"\n", stats.discard_packets);
526        seq_puts(seq,   "  }\n");
527        seq_puts(seq,   "}\n");
528
[241]529        return 0;
530}
531
532static int
[250]533ksyslog_stats_seq_open(struct inode *inode, struct file *file)
[241]534{
[250]535        return single_open(file, ksyslog_stats_seq_show, PDE_DATA(inode));
[241]536}
537
[250]538static struct file_operations ksyslog_size_fops = {
[240]539        .owner   = THIS_MODULE,
[250]540        .open    = ksyslog_size_seq_open,
[240]541        .read    = seq_read,
542        .llseek  = seq_lseek,
543        .release = single_release,
544};
545
[250]546static struct file_operations ksyslog_stats_fops = {
[241]547        .owner   = THIS_MODULE,
[250]548        .open    = ksyslog_stats_seq_open,
[241]549        .read    = seq_read,
550        .llseek  = seq_lseek,
551        .release = single_release,
552};
553
554static void
555ksyslog_proc_destroy(void)
556{
557        if (ksyslog_proc_queue)
[246]558                remove_proc_entry("queue", ksyslog_procdir);
[241]559        ksyslog_proc_queue = NULL;
560
[250]561        if (ksyslog_proc_size)
562                remove_proc_entry("size", ksyslog_procdir);
563        ksyslog_proc_size = NULL;
[241]564
[250]565        if (ksyslog_proc_stats)
566                remove_proc_entry("stats", ksyslog_procdir);
567        ksyslog_proc_stats = NULL;
[241]568
569        if (ksyslog_procdir)
[246]570                remove_proc_entry("ksyslog", NULL);
[241]571        ksyslog_procdir = NULL;
572}
573
[240]574static int
[232]575ksyslog_proc_init(void)
576{
577        ksyslog_procdir = proc_mkdir("ksyslog", NULL);
578        if (ksyslog_procdir == NULL) {
[250]579                pr_err("ksyslog: proc_mkdir failed\n");
[241]580                goto err;
[232]581        }
582
[239]583        ksyslog_proc_queue = proc_create_data("queue", S_IRUGO, ksyslog_procdir,
584                                              &ksyslog_queue_fops, &ksyslog_queue.head);
[232]585        if (ksyslog_proc_queue == NULL) {
[250]586                pr_err("ksyslog: proc_create(queue) failed\n");
[241]587                goto err;
[232]588        }
589
[250]590        ksyslog_proc_size = proc_create("size", S_IRUGO, ksyslog_procdir,
591                                        &ksyslog_size_fops);
592        if (ksyslog_proc_size == NULL) {
593                pr_err("ksyslog: proc_create(size) failed\n");
[241]594                goto err;
[240]595        }
596
[250]597        ksyslog_proc_stats = proc_create("stats", S_IRUGO, ksyslog_procdir,
598                                         &ksyslog_stats_fops);
599        if (ksyslog_proc_stats == NULL) {
600                pr_err("ksyslog: proc_create(stats) failed\n");
[241]601                goto err;
602        }
[232]603
[241]604        return 0;
[232]605
[241]606err:
607        ksyslog_proc_destroy();
608        return -ENOMEM;
[232]609}
610#endif
611
612static void
613ksyslog_finish(void)
614{
615        if (ksyslog_rcv_sk)
616                sock_release(ksyslog_rcv_sk);
617        ksyslog_rcv_sk = NULL;
618
[270]619        if (ksyslog_wq) {
[232]620                ksyslog_work_unregister();
621                destroy_workqueue(ksyslog_wq);
[270]622        }
[232]623        ksyslog_wq = NULL;
624
625#ifdef CONFIG_PROC_FS
626        ksyslog_proc_destroy();
627#endif
628
629        ksyslog_entry_destroy(&ksyslog_queue);
[237]630        rcu_barrier();
[250]631
632        ksyslog_queue_uninit(&ksyslog_queue);
[232]633}
634
635static int __init
636ksyslog_init(void)
637{
[270]638        int err;
[232]639        struct sockaddr_in sin;
640
[250]641        err = ksyslog_queue_init(&ksyslog_queue);
642        if (err)
643                goto err;
[232]644
645#ifdef CONFIG_PROC_FS
646        err = ksyslog_proc_init();
647        if (err)
648                goto err;
649#endif
650
[268]651        ksyslog_wq = create_workqueue("ksyslog");
[232]652        if (ksyslog_wq == NULL) {
[250]653                pr_err("ksyslog: create_workqueue failed\n");
[232]654                err = -ENOMEM;
655                goto err;
656        }
657
[270]658        INIT_DELAYED_WORK(&ksyslog_work, ksyslog_work_handler);
[232]659
660        err = sock_create(AF_INET, SOCK_DGRAM, 0, &ksyslog_rcv_sk);
661        if (err) {
[250]662                pr_err("ksyslog: sock_create failed\n");
[232]663                goto err;
664        }
665
666        sin.sin_family = AF_INET;
667        sin.sin_addr.s_addr = in_aton(ksyslog_host);
668        sin.sin_port = htons(ksyslog_port);
669
670        err = kernel_bind(ksyslog_rcv_sk, (struct sockaddr *)&sin,
671                          sizeof(struct sockaddr_in));
672        if (err) {
[250]673                pr_err("ksyslog: kernel_bind failed\n");
[232]674                goto err;
675        }
676
[247]677        ksyslog_work_register(ksyslog_flush_interval);
678
[232]679        udp_sk(ksyslog_rcv_sk->sk)->encap_type = UDP_ENCAP_KSYSLOG;
680        udp_sk(ksyslog_rcv_sk->sk)->encap_rcv = ksyslog_rcv;
[247]681        udp_encap_enable();
[232]682
683        return 0;
684
685err:
686        ksyslog_finish();
687        return err;
688}
689
690static void __exit
691ksyslog_exit(void)
692{
693        ksyslog_finish();
694}
695
696module_init(ksyslog_init);
697module_exit(ksyslog_exit);
698
699MODULE_AUTHOR("Atzm WATANABE");
700MODULE_DESCRIPTION("In-kernel syslog receiver");
701MODULE_LICENSE("GPL");
Note: See TracBrowser for help on using the repository browser.