]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[PATCH] audit: dynamically allocate audit_names when not enough spaceis in the names...
authorMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 29 Sep 2011 17:11:07 +0000 (10:11 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 29 Sep 2011 17:42:27 +0000 (10:42 -0700)
commitcbee6470aab88f205e73691b2d26e708dfe1fec3
tree34b7a1464c34fd4a0bca9e93dcadcb45000f18ba
parent36bc04eb4c18a06655c2ed66c6703b431d44b412
[PATCH] audit: dynamically allocate audit_names when not enough spaceis in the names array

Some system calls, such as loading a module, can cause filesystem activity
such as creating lots of new files in /sys or debugfs. Audit can only capture
20 inodes in a single syscall since it stores them in a fixed length array.
This patch shrinks the fixed length array to 5 names (the number used by a
rename operation) and then allocates names dynamically as they are needed
after 5. It should shut up the complaints we sometimes see about
'name_count maxed, losing inode data" such as that seen in Red Hat bugzilla
445757.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
kernel/auditsc.c