aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorOndrej Mosnacek <[email protected]>2020-01-16 13:04:34 +0100
committerPaul Moore <[email protected]>2020-01-16 16:05:25 -0500
commitdd89b9d9f37decab85e000384d229abdcd9944ae (patch)
tree9375dc3bb6a32493cf1b965b6d5560036d253196 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentcb89e2465896f30d4247ac9ff47d30522e39745a (diff)
selinux: do not allocate ancillary buffer on first load
In security_load_policy(), we can defer allocating the newpolicydb ancillary array to after checking state->initialized, thereby avoiding the pointless allocation when loading policy the first time. Signed-off-by: Ondrej Mosnacek <[email protected]> [PM: merged portions by hand] Reviewed-by: Stephen Smalley <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions