-
- Downloads
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>
Showing
- include/linux/lsm_audit.h 3 additions, 4 deletionsinclude/linux/lsm_audit.h
- security/apparmor/audit.c 1 addition, 3 deletionssecurity/apparmor/audit.c
- security/lsm_audit.c 9 additions, 5 deletionssecurity/lsm_audit.c
- security/selinux/avc.c 1 addition, 3 deletionssecurity/selinux/avc.c
- security/smack/smack_access.c 1 addition, 2 deletionssecurity/smack/smack_access.c
Loading
Please register or sign in to comment