]> git.baikalelectronics.ru Git - kernel.git/commit
LSM: shrink the common_audit_data data union
authorEric Paris <eparis@redhat.com>
Mon, 2 Apr 2012 17:15:44 +0000 (13:15 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 3 Apr 2012 16:49:10 +0000 (09:49 -0700)
commitb2f06ea67a5024fd71749d883ee0a88efc9c98a2
treeba938e4fb45d5bdaad2dad44071d0625f8e36945
parentc3ba34a66c50f9b148ff27ee89a4fdb6876dc78d
LSM: shrink the common_audit_data data union

After shrinking the common_audit_data stack usage for private LSM data I'm
not going to shrink the data union.  To do this I'm going to move anything
larger than 2 void * ptrs to it's own structure and require it to be declared
separately on the calling stack.  Thus hot paths which don't need more than
a couple pointer don't have to declare space to hold large unneeded
structures.  I could get this down to one void * by dealing with the key
struct and the struct path.  We'll see if that is helpful after taking care of
networking.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/lsm_audit.h
security/lsm_audit.c
security/selinux/hooks.c
security/smack/smack.h
security/smack/smack_lsm.c