MCPcopy Create free account
hub / github.com/containerd/cgroups / canSkipEBPFError

Function canSkipEBPFError

cgroup2/ebpf.go:89–96  ·  view source on GitHub ↗

the logic is from runc https://github.com/opencontainers/runc/blob/master/libcontainer/cgroups/fs/devices_v2.go#L44

(devices []specs.LinuxDeviceCgroup)

Source from the content-addressed store, hash-verified

87// the logic is from runc
88// https://github.com/opencontainers/runc/blob/master/libcontainer/cgroups/fs/devices_v2.go#L44
89func canSkipEBPFError(devices []specs.LinuxDeviceCgroup) bool {
90 for _, dev := range devices {
91 if dev.Allow || !isRWM(dev.Access) {
92 return false
93 }
94 }
95 return true
96}

Callers 1

setDevicesFunction · 0.85

Calls 1

isRWMFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…