MCPcopy
hub / github.com/cloudflare/cloudflared / isRootUser

Function isRootUser

cmd/cloudflared/macos_service.go:75–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75func isRootUser() bool {
76 return os.Geteuid() == 0
77}
78
79func installPath() (string, error) {
80 // User is root, use /Library/LaunchDaemons instead of home directory

Callers 5

installPathFunction · 0.85
stdoutPathFunction · 0.85
stderrPathFunction · 0.85
installLaunchdFunction · 0.85
uninstallLaunchdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected