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)
| 432 | // the parent should execute pre-start hooks. It then waits for the parent to |
| 433 | // indicate that it is cleared to resume. |
| 434 | func 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. |
no test coverage detected
searching dependent graphs…