Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
75
func
isRootUser() bool {
76
return
os.Geteuid() == 0
77
}
78
79
func
installPath() (string, error) {
80
// User is root, use /Library/LaunchDaemons instead of home directory
Callers
5
installPath
Function · 0.85
stdoutPath
Function · 0.85
stderrPath
Function · 0.85
installLaunchd
Function · 0.85
uninstallLaunchd
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected