[PATCH v2] Untrusted string logging

David Woodhouse dwmw2 at infradead.org
Thu May 12 17:36:55 UTC 2005


On Thu, 2005-05-12 at 13:29 -0400, Steve Grubb wrote:
> * In audit_log_vformat, we expand the skb just enough memory to cover current 
> needs. There's no hysteresis. 

Currently we expand it by either as much as is needed, or by
AUDIT_BUFSIZ; whichever is larger. Look at the line you removed:

-               avail = audit_expand(ab, max_t(unsigned, AUDIT_BUFSIZ, 1+len-avail));

-- 
dwmw2




More information about the Linux-audit mailing list