mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]>
This commit is contained in:
parent
3f0882c482
commit
b61c37f579
5 changed files with 15 additions and 17 deletions
|
|
@ -321,9 +321,8 @@ void smack_log(char *subject_label, char *object_label, int request,
|
|||
sad->object = object_label;
|
||||
sad->request = request_buffer;
|
||||
sad->result = result;
|
||||
a->lsm_pre_audit = smack_log_callback;
|
||||
|
||||
common_lsm_audit(a);
|
||||
common_lsm_audit(a, smack_log_callback, NULL);
|
||||
}
|
||||
#else /* #ifdef CONFIG_AUDIT */
|
||||
void smack_log(char *subject_label, char *object_label, int request,
|
||||
|
|
|
|||
Loading…
Reference in a new issue