]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 3 Apr 2012 16:49:59 +0000 (09:49 -0700)
commite6161ad5696534da7a2e45a8c0cc7d3a4e0d3d93
treea808c891711d060060a751f4119198dc06e2c847
parentb300bd47d21fcce73647b57ebd0926787439a5b3
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