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

Function isRWM

cgroup2/ebpf.go:70–85  ·  view source on GitHub ↗
(cgroupPermissions string)

Source from the content-addressed store, hash-verified

68}
69
70func isRWM(cgroupPermissions string) bool {
71 r := false
72 w := false
73 m := false
74 for _, rn := range cgroupPermissions {
75 switch rn {
76 case 'r':
77 r = true
78 case 'w':
79 w = true
80 case 'm':
81 m = true
82 }
83 }
84 return r && w && m
85}
86
87// the logic is from runc
88// https://github.com/opencontainers/runc/blob/master/libcontainer/cgroups/fs/devices_v2.go#L44

Callers 1

canSkipEBPFErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…