mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-15 01:49:08 +02:00
Add known mark to identity, fix credentials comparison bugs
This commit is contained in:
@@ -11,7 +11,8 @@ import "os"
|
||||
// Identity.IsPrivileged the daemon applies.
|
||||
func CurrentProcessIdentity() (Identity, error) {
|
||||
return Identity{
|
||||
UID: uint32(os.Geteuid()),
|
||||
GID: uint32(os.Getegid()),
|
||||
UID: uint32(os.Geteuid()),
|
||||
GID: uint32(os.Getegid()),
|
||||
known: true,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user