Lines Matching +full:1 +full:p1
24 #define YAMA_SCOPE_RELATIONAL 1
41 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in create_domain()
78 if (read(fd, buf, 1) < 0) { in get_yama_ptrace_scope()
80 return -1; in get_yama_ptrace_scope()
100 * Test multiple tracing combinations between a parent process P1 and a child
105 * all P2 requests to trace P1 would be denied.
111 * P1-. P1 -> P2 : allow
112 * \ P2 -> P1 : allow
126 * P1--. P1 -> P2 : allow
127 * \ P2 -> P1 : deny
143 * | P1 --. P1 -> P2 : deny
144 * '------' \ P2 -> P1 : allow
159 * | P1 ---. P1 -> P2 : deny
160 * '------' \ P2 -> P1 : deny
176 * | P1----. | P1 -> P2 : allow
177 * | \ | P2 -> P1 : allow
193 * | P1----. | P1 -> P2 : allow
194 * | \ | P2 -> P1 : deny
211 * |.------. | P1 -> P2 : deny
212 * || P1 ----. | P2 -> P1 : allow
229 * | .------. | P1 -> P2 : deny
230 * | | P1 . | P2 -> P1 : deny
327 ASSERT_EQ(0, close(pipe_parent[1])); in TEST_F()
333 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
348 EXPECT_EQ(-1, ret); in TEST_F()
353 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
362 EXPECT_EQ(-1, ret); in TEST_F()
370 ASSERT_EQ(1, write(pipe_child[1], ".", 1)); in TEST_F()
377 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
382 ASSERT_EQ(0, close(pipe_child[1])); in TEST_F()
388 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()
394 ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1)); in TEST_F()
399 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
403 EXPECT_EQ(-1, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
420 EXPECT_EQ(-1, ret); in TEST_F()
426 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
431 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()