summaryrefslogtreecommitdiffhomepage
path: root/util/syspolicy/rsop/resultant_policy.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/syspolicy/rsop/resultant_policy.go')
-rw-r--r--util/syspolicy/rsop/resultant_policy.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/syspolicy/rsop/resultant_policy.go b/util/syspolicy/rsop/resultant_policy.go
index bdda90976..67e13ab56 100644
--- a/util/syspolicy/rsop/resultant_policy.go
+++ b/util/syspolicy/rsop/resultant_policy.go
@@ -96,6 +96,8 @@ func newPolicy(scope setting.PolicyScope, sources ...*source.Source) (_ *Policy,
closeCh: make(chan struct{}),
doneCh: make(chan struct{}),
}
+ syncs.RegisterMutex(&p.mu, "syspolicy/rsop.Policy.mu")
+
if _, err := p.reloadNow(false); err != nil {
p.Close()
return nil, err