mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: Sandbox profile loader from file should use path for caching
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ func (r *defaultProfileRegistry) LoadCustomProfile(path string) (*SandboxPolicy,
|
||||
}
|
||||
|
||||
r.mu.Lock()
|
||||
r.profiles[policy.Name] = policy
|
||||
r.profiles[path] = policy
|
||||
r.mu.Unlock()
|
||||
|
||||
return policy, nil
|
||||
|
||||
Reference in New Issue
Block a user