AUDIT: expand audit tmp buffer as needed
authorChris Wright <chrisw@osdl.org>
Fri, 6 May 2005 14:54:17 +0000 (15:54 +0100)
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>
Fri, 6 May 2005 14:54:17 +0000 (15:54 +0100)
commit8fc6115c2a04099a6e846dc0b2d85cba43821b54
tree6dc6bf0f59f6ada9ed42c79b0e641f8668a9bf0b
parent16e1904e694d459ec2ca9b33c22b818eaaa4c63f
AUDIT: expand audit tmp buffer as needed

Introduce audit_expand and make the audit_buffer use a dynamic buffer
which can be resized.  When audit buffer is moved to skb it will not
be fragmented across skb's, so we can eliminate the sklist in the
audit_buffer.  During audit_log_move, we simply copy the full buffer
into a single skb, and then audit_log_drain sends it on.

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
kernel/audit.c