]> git.baikalelectronics.ru Git - kernel.git/commit
Audit: better estimation of execve record length
authorEric Paris <eparis@redhat.com>
Thu, 11 Jun 2009 18:31:34 +0000 (14:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 24 Jun 2009 03:50:34 +0000 (23:50 -0400)
commit0236bf1d38a62a45e372b95e72a4f4375405a391
tree24b56d53dc03b0a6c8434ad2250c1c40d179d0ce
parent09c9e99d1a66ae74da5f5713688878b6ebb6deb7
Audit: better estimation of execve record length

The audit execve record splitting code estimates the length of the message
generated.  But it forgot to include the "" that wrap each string in its
estimation.  This means that execve messages with lots of tiny (1-2 byte)
arguments could still cause records greater than 8k to be emitted.  Simply
fix the estimate.

Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/auditsc.c