mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-26 16:49:08 +02:00
Update client/internal/profilemanager/service.go
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
cubic-dev-ai[bot]
parent
09e4acb746
commit
ce703d84aa
@@ -891,7 +891,7 @@ func readProfileOwners(path string) ([]ipcauth.Principal, error) {
|
|||||||
// recorded now.
|
// recorded now.
|
||||||
func StampOwner(path string, owner ipcauth.Identity) error {
|
func StampOwner(path string, owner ipcauth.Identity) error {
|
||||||
if !owner.Known() {
|
if !owner.Known() {
|
||||||
return fmt.Errorf("cannot stamp owner that is verified by the kernel")
|
return fmt.Errorf("cannot stamp owner that is not verified by the kernel")
|
||||||
}
|
}
|
||||||
return stampPrincipal(path, ipcauth.OwnerPrincipalForIdentity(owner))
|
return stampPrincipal(path, ipcauth.OwnerPrincipalForIdentity(owner))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user