MCPcopy Index your code
hub / github.com/containerd/containerd / runningPrivileged

Function runningPrivileged

pkg/sys/oom_linux.go:80–82  ·  view source on GitHub ↗

runningPrivileged returns true if the effective user ID of the calling process is 0

()

Source from the content-addressed store, hash-verified

78// runningPrivileged returns true if the effective user ID of the
79// calling process is 0
80func runningPrivileged() bool {
81 return unix.Geteuid() == 0
82}

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…