mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
LSM Audit: rename LSM_AUDIT_NO_AUDIT to LSM_AUDIT_DATA_NONE
Most of the LSM common audit work uses LSM_AUDIT_DATA_* for the naming. This was not so for LSM_AUDIT_NO_AUDIT which means the generic initializer cannot be used. This patch just renames the flag so the generic initializer can be used. Signed-off-by: Eric Paris <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
b03df87d11
commit
cb84aa9b42
3 changed files with 3 additions and 4 deletions
|
|
@ -499,8 +499,7 @@ void avc_audit(u32 ssid, u32 tsid,
|
|||
return;
|
||||
if (!a) {
|
||||
a = &stack_data;
|
||||
memset(a, 0, sizeof(*a));
|
||||
a->type = LSM_AUDIT_NO_AUDIT;
|
||||
COMMON_AUDIT_DATA_INIT(a, NONE);
|
||||
}
|
||||
a->selinux_audit_data.tclass = tclass;
|
||||
a->selinux_audit_data.requested = requested;
|
||||
|
|
|
|||
Loading…
Reference in a new issue