From 33f3e81df531d62a53390de20812d4e94720e1d3 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Fri, 1 Jan 2021 08:06:12 +0100 Subject: cache: combine fast path enabled status into one flag Tested by: pho --- sys/security/mac/mac_framework.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/security/mac') diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index 3ec932147637..c1d52eff383e 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -82,6 +82,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -399,6 +400,8 @@ mac_policy_update(void) mac_labeled |= mac_policy_getlabeled(mpc); mac_policy_count++; } + + cache_fast_lookup_enabled_recalc(); } /* -- cgit v1.2.3