MCPcopy Create free account
hub / github.com/eth-easl/dirigent / isUserRoot

Function isUserRoot

internal/worker_node/worker_node.go:64–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func isUserRoot() (int, bool) {
65 uid := os.Getuid()
66
67 return uid, uid == 0
68}
69
70func NewWorkerNode(cpApi proto.CpiInterfaceClient, config config.WorkerNodeConfig, name ...string) *WorkerNode {
71 hostName, err := os.Hostname()

Callers 1

NewWorkerNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected