Lines Matching refs:child

100  * Test multiple tracing combinations between a parent process P1 and a child
157 * Parent + child domain (siblings)
191 * Inherited + child domain
227 * Inherited + parent and child domain (siblings)
254 /* Test PTRACE_TRACEME and PTRACE_ATTACH for parent and child. */
257 pid_t child, parent;
273 * can_read_child is true if a parent process can read its child
275 * isolated from the child with a dedicated Landlock domain.
280 * can_trace_child is true if a parent process can trace its child
282 * - The parent process is not isolated from the child with a dedicated
290 * can_read_parent is true if a child process can read its parent
291 * process, which is only the case when the child process is not
297 * can_trace_parent is true if a child process can trace its parent
299 * - The child process is not isolated from the parent with a dedicated
322 child = fork();
323 ASSERT_LE(0, child);
324 if (child == 0) {
357 /* Tests child PTRACE_TRACEME. */
391 * Waits for the child to test PTRACE_ATTACH on the parent and start
396 /* Tests child PTRACE_TRACEME. */
398 ASSERT_EQ(child, waitpid(child, &status, 0));
400 ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0));
402 /* The child should not be traced by the parent. */
403 EXPECT_EQ(-1, ptrace(PTRACE_DETACH, child, NULL, 0));
407 /* Tests PTRACE_MODE_READ on the child. */
408 err_proc_read = test_ptrace_read(child);
415 /* Tests PTRACE_ATTACH on the child. */
416 ret = ptrace(PTRACE_ATTACH, child, NULL, 0);
425 ASSERT_EQ(child, waitpid(child, &status, 0));
427 ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0));
432 ASSERT_EQ(child, waitpid(child, &status, 0));