From: Joe Perches <joe@perches.com>
To: Richard Guy Briggs <rgb@redhat.com>
Cc: Josh Boyer <jwboyer@fedoraproject.org>,
Eric Paris <eparis@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] audit: remove stray newlines from audit_log_lost messages
Date: Wed, 05 Mar 2014 14:34:36 -0800 [thread overview]
Message-ID: <1394058876.12070.26.camel@joe-AO722> (raw)
In-Reply-To: <20140305222703.GW16640@madcap2.tricolour.ca>
On Wed, 2014-03-05 at 17:27 -0500, Richard Guy Briggs wrote:
> On 14/03/05, Josh Boyer wrote:
> > Calling audit_log_lost with a \n in the format string leads to extra
> > newlines in dmesg. That function will eventually call audit_panic which
> > uses pr_err with an explicit \n included. Just make these calls match the
> > others that lack \n.
> >
> > Reported-by: Jonathan Kamens <jik@kamens.brookline.ma.us>
> > Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org>
>
> Ack. queued.
There's an unnecessary use of a \n in audit_panic too
---
kernel/auditsc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 7aef2f4..da93d2e 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -1157,7 +1157,7 @@ static void audit_log_execve_info(struct audit_context *context,
*/
buf = kmalloc(MAX_EXECVE_AUDIT_LEN + 1, GFP_KERNEL);
if (!buf) {
- audit_panic("out of memory for argv string\n");
+ audit_panic("out of memory for argv string");
return;
}
next prev parent reply other threads:[~2014-03-05 22:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-05 21:29 Josh Boyer
2014-03-05 22:27 ` Richard Guy Briggs
2014-03-05 22:34 ` Joe Perches [this message]
2014-03-05 23:11 ` Richard Guy Briggs
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=1394058876.12070.26.camel@joe-AO722 \
--to=joe@perches.com \
--cc=eparis@redhat.com \
--cc=jwboyer@fedoraproject.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rgb@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®