diff options
Diffstat (limited to 'util/syspolicy/setting/setting.go')
| -rw-r--r-- | util/syspolicy/setting/setting.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/syspolicy/setting/setting.go b/util/syspolicy/setting/setting.go index 97362b1dc..d0df2436c 100644 --- a/util/syspolicy/setting/setting.go +++ b/util/syspolicy/setting/setting.go @@ -220,6 +220,11 @@ var ( definitionsUsed bool ) +var _ = func() bool { + syncs.RegisterMutex(&definitionsMu, "syspolicy/setting.definitionsMu") + return true +}() + // Register registers a policy setting with the specified key, scope, value type, // and an optional list of supported platforms. All policy settings must be // registered before any of them can be used. Register panics if called after |
