MCPcopy
hub / github.com/opencontainers/runc / createLibContainerRlimit

Function createLibContainerRlimit

spec.go:136–146  ·  view source on GitHub ↗
(rlimit specs.POSIXRlimit)

Source from the content-addressed store, hash-verified

134}
135
136func createLibContainerRlimit(rlimit specs.POSIXRlimit) (configs.Rlimit, error) {
137 rl, err := strToRlimit(rlimit.Type)
138 if err != nil {
139 return configs.Rlimit{}, err
140 }
141 return configs.Rlimit{
142 Type: rl,
143 Hard: rlimit.Hard,
144 Soft: rlimit.Soft,
145 }, nil
146}

Callers 1

newProcessFunction · 0.85

Calls 1

strToRlimitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…