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

Function procfsOpenRoot

internal/sys/sysctl_linux.go:14–22  ·  view source on GitHub ↗
(proc *procfs.Handle, subpath string, flags int)

Source from the content-addressed store, hash-verified

12)
13
14func procfsOpenRoot(proc *procfs.Handle, subpath string, flags int) (*os.File, error) {
15 handle, err := proc.OpenRoot(subpath)
16 if err != nil {
17 return nil, err
18 }
19 defer handle.Close()
20
21 return pathrs.Reopen(handle, flags)
22}
23
24// WriteSysctls sets the given sysctls to the requested values.
25func WriteSysctls(sysctls map[string]string) error {

Callers 1

WriteSysctlsFunction · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…