LSM: do not initialize common_audit_data to 0
It isn't needed. If you don't set the type of the data associated with that type it is a pretty obvious programming bug. So why waste the cycles? Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
@@ -469,7 +469,7 @@ noinline int slow_avc_audit(u32 ssid, u32 tsid, u16 tclass,
|
||||
|
||||
if (!a) {
|
||||
a = &stack_data;
|
||||
COMMON_AUDIT_DATA_INIT(a, LSM_AUDIT_DATA_NONE);
|
||||
a->type = LSM_AUDIT_DATA_NONE;
|
||||
a->selinux_audit_data = &sad;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user