lsm_audit: don't specify the audit pre/post callbacks in 'struct common_audit_data'
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 2 Apr 2012 22:48:12 +0000 (15:48 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 13:07:16 +0000 (18:07 +0530)
commit57ab8e1b1722147fd892b3f91cffec6f4e4f31da
tree02387bfc9ab36910dcc2cd224968d438a1707ca5
parent8b905836fe935e31d1110258a06fc96eeccb2a57
lsm_audit: don't specify the audit pre/post callbacks in 'struct common_audit_data'

It just bloats the audit data structure for no good reason, since the
only time those fields are filled are just before calling the
common_lsm_audit() function, which is also the only user of those
fields.

So just make them be the arguments to common_lsm_audit(), rather than
bloating that structure that is passed around everywhere, and is
initialized in hot paths.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/lsm_audit.h
security/apparmor/audit.c
security/lsm_audit.c
security/selinux/avc.c
security/smack/smack_access.c