All of lore.kernel.org
 help / color / mirror / Atom feed
From: Durval Menezes <jm139@tmp.com.br>
To: linux-kernel@vger.kernel.org
Cc: Durval Menezes <jm139@tmp.com.br>
Subject: [2.6.13.4 patch] kernel/audit.c: changing audit loglevel
Date: Sat, 12 Nov 2005 18:23:55 -0200	[thread overview]
Message-ID: <20051112182355.A796@tmp.com.br> (raw)

Hello folks,

Here's a (very simple) patch to change the loglevel of messages
produced by the audit facility.

I was getting sick of the console polution the default loglevel
(KERNEL_WARN) was producing; I investigated and found out that 
kernel/audit.c simply wasn't setting the loglevel of most messages,
so they were getting tagged with the default (KERNEL_WARN) in
kernel/printk.c

I know I could have set the default console logging level to KERN_ERR
or lower, but it seems much more reasonable to set the audit loglevel
to KERN_NOTICE instead.

I'm submiting this in hope it could be useful to someone else.
Please Cc: any comments to me directly (durval AT tmp DOT com DOT br).

Best regards,
--
  Durval Menezes (durval AT tmp DOT com DOT br)

--- linux-2.6.13.4/kernel/audit.c.orig-20051111        2005-10-10 15:54:29.000000000 -0300
+++ linux-2.6.13.4-dm/kernel/audit.c      2005-11-12 16:43:39.000000000 -0200
@@ -673,7 +673,7 @@

        audit_get_stamp(ab->ctx, &t, &serial);

-       audit_log_format(ab, "audit(%lu.%03lu:%u): ",
+       audit_log_format(ab, KERN_NOTICE "audit(%lu.%03lu:%u): ",
                         t.tv_sec, t.tv_nsec/1000000, serial);  
        return ab;
 }

==Eof==

                 reply	other threads:[~2005-11-12 20:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051112182355.A796@tmp.com.br \
    --to=jm139@tmp.com.br \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.