diff options
author | Eric Paris <eparis@redhat.com> | 2012-01-03 20:23:05 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-17 22:16:54 +0100 |
commit | 5195d8e217a78697152d64fc09a16e063a022465 (patch) | |
tree | 6d8d980037d95740d0f64ba9491c0e5a38f31ea3 /kernel/jump_label.c | |
parent | audit: make filetype matching consistent with other filters (diff) | |
download | linux-5195d8e217a78697152d64fc09a16e063a022465.tar.xz linux-5195d8e217a78697152d64fc09a16e063a022465.zip |
audit: dynamically allocate audit_names when not enough space is in the names array
This patch does 2 things. First it reduces the number of audit_names
allocated in every audit context from 20 to 5. 5 should be enough for all
'normal' syscalls (rename being the worst). Some syscalls can still touch
more the 5 inodes such as mount. When rpc filesystem is mounted it will
create inodes and those can exceed 5. To handle that problem this patch will
dynamically allocate audit_names if it needs more than 5. This should
decrease the typicall memory usage while still supporting all the possible
kernel operations.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/jump_label.c')
0 files changed, 0 insertions, 0 deletions