mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00: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
|
|
}
|