]> git.baikalelectronics.ru Git - kernel.git/commit
audit: EXECVE record - removed bogus newline
authorJiri Pirko <jpirko@redhat.com>
Fri, 9 Jan 2009 15:44:16 +0000 (16:44 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 Apr 2009 17:38:59 +0000 (13:38 -0400)
commitba2608edd156d56755e5e6e81341a7f0edeb8f77
treef0a838bddc4d20b204720592811484bbe3e98a6a
parent92d9af08858aa76d01b751c6267e37d8538a9925
audit: EXECVE record - removed bogus newline

(updated)
Added hunk that changes the comment, the rest is the same.

EXECVE records contain a newline after every argument. auditd converts
"\n" to " " so you cannot see newlines even in raw logs, but they're
there nevertheless. If you're not using auditd, you need to work round
them. These '\n' chars are can be easily replaced by spaces when
creating record in kernel. Note there is no need for trailing '\n' in
an audit record.

record before this patch:
"type=EXECVE msg=audit(1231421801.566:31): argc=4 a0=\"./test\"\na1=\"a\"\na2=\"b\"\na3=\"c\"\n"

record after this patch:
"type=EXECVE msg=audit(1231421801.566:31): argc=4 a0=\"./test\" a1=\"a\" a2=\"b\" a3=\"c\""

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/auditsc.c