Lines Matching full:child
98 * Test multiple tracing combinations between a parent process P1 and a child
122 * Child domain
155 * Parent + child domain (siblings)
189 * Inherited + child domain
225 * Inherited + parent and child domain (siblings)
252 /* Test PTRACE_TRACEME and PTRACE_ATTACH for parent and child. */
255 pid_t child, parent; in TEST_F() local
271 * can_read_child is true if a parent process can read its child in TEST_F()
273 * isolated from the child with a dedicated Landlock domain. in TEST_F()
278 * can_trace_child is true if a parent process can trace its child in TEST_F()
280 * - The parent process is not isolated from the child with a dedicated in TEST_F()
288 * can_read_parent is true if a child process can read its parent in TEST_F()
289 * process, which is only the case when the child process is not in TEST_F()
295 * can_trace_parent is true if a child process can trace its parent in TEST_F()
297 * - The child process is not isolated from the parent with a dedicated in TEST_F()
320 child = fork(); in TEST_F()
321 ASSERT_LE(0, child); in TEST_F()
322 if (child == 0) { in TEST_F()
355 /* Tests child PTRACE_TRACEME. */ in TEST_F()
389 * Waits for the child to test PTRACE_ATTACH on the parent and start in TEST_F()
394 /* Tests child PTRACE_TRACEME. */ in TEST_F()
396 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
398 ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
400 /* The child should not be traced by the parent. */ in TEST_F()
401 EXPECT_EQ(-1, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
405 /* Tests PTRACE_MODE_READ on the child. */ in TEST_F()
406 err_proc_read = test_ptrace_read(child); in TEST_F()
413 /* Tests PTRACE_ATTACH on the child. */ in TEST_F()
414 ret = ptrace(PTRACE_ATTACH, child, NULL, 0); in TEST_F()
423 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()
425 ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
430 ASSERT_EQ(child, waitpid(child, &status, 0)); in TEST_F()