mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
12 lines
129 B
Go
12 lines
129 B
Go
//go:build !windows
|
|
|
|
package cli
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func hasElevatedPrivilege() (bool, error) {
|
|
return os.Geteuid() == 0, nil
|
|
}
|