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

Function syncParentHooks

libcontainer/init_linux.go:434–441  ·  view source on GitHub ↗

syncParentHooks sends to the given pipe a JSON payload which indicates that the parent should execute pre-start hooks. It then waits for the parent to indicate that it is cleared to resume.

(pipe *syncSocket)

Source from the content-addressed store, hash-verified

432// the parent should execute pre-start hooks. It then waits for the parent to
433// indicate that it is cleared to resume.
434func syncParentHooks(pipe *syncSocket) error {
435 // Tell parent.
436 if err := writeSync(pipe, procHooks); err != nil {
437 return err
438 }
439 // Wait for parent to give the all-clear.
440 return readSync(pipe, procHooksDone)
441}
442
443// syncParentSeccomp sends the fd associated with the seccomp file descriptor
444// to the parent, and wait for the parent to do pidfd_getfd() to grab a copy.

Callers 1

prepareRootfsFunction · 0.85

Calls 2

writeSyncFunction · 0.85
readSyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…