Lines Matching full:child
100 * Test multiple tracing combinations between a parent process P1 and a child
124 * Child domain
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; in TEST_F() local
273 * can_read_child is true if a parent process can read its child in TEST_F()
275 * isolated from the child with a dedicated Landlock domain. in TEST_F()
280 * can_trace_child is true if a parent process can trace its child in TEST_F()
282 * - The parent process is not isolated from the child with a dedicated in TEST_F()
290 * can_read_parent is true if a child process can read its parent in TEST_F()
291 * process, which is only the case when the child process is not in TEST_F()
297 * can_trace_parent is true if a child process can trace its parent in TEST_F()
299 * - The child process is not isolated from the parent with a dedicated in TEST_F()
322 child = fork(); in TEST_F()
323 ASSERT_LE(0, child); in TEST_F()
324 if (child == 0) { in TEST_F()
357 /* Tests child PTRACE_TRACEME. */ in TEST_F()
391 * Waits for the child to test PTRACE_ATTACH on the parent and start in TEST_F()
396 /* Tests child PTRACE_TRACEME. */ in TEST_F()
398 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
400 ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
402 /* The child should not be traced by the parent. */ in TEST_F()
403 EXPECT_EQ(-1, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
407 /* Tests PTRACE_MODE_READ on the child. */ in TEST_F()
408 err_proc_read = test_ptrace_read(child); in TEST_F()
415 /* Tests PTRACE_ATTACH on the child. */ in TEST_F()
416 ret = ptrace(PTRACE_ATTACH, child, NULL, 0); in TEST_F()
425 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
427 ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
432 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()