fix syncPolicyManager

pull/1041/head^2
Darien Raymond 2018-04-12 09:57:41 +02:00
parent a06078ecb3
commit fe58cec5e3
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 11 additions and 0 deletions

View File

@ -91,6 +91,17 @@ func (m *syncPolicyManager) ForLevel(level uint32) Policy {
return m.PolicyManager.ForLevel(level)
}
func (m *syncPolicyManager) ForSystem() SystemPolicy {
m.RLock()
defer m.RUnlock()
if m.PolicyManager == nil {
return SystemPolicy{}
}
return m.PolicyManager.ForSystem()
}
func (m *syncPolicyManager) Start() error {
m.RLock()
defer m.RUnlock()