Lines Matching +full:1 +full:p1

24 #define YAMA_SCOPE_RELATIONAL 1
39 EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in create_domain()
76 if (read(fd, buf, 1) < 0) { in get_yama_ptrace_scope()
78 return -1; in get_yama_ptrace_scope()
98 * Test multiple tracing combinations between a parent process P1 and a child
103 * all P2 requests to trace P1 would be denied.
109 * P1-. P1 -> P2 : allow
110 * \ P2 -> P1 : allow
124 * P1--. P1 -> P2 : allow
125 * \ P2 -> P1 : deny
141 * | P1 --. P1 -> P2 : deny
142 * '------' \ P2 -> P1 : allow
157 * | P1 ---. P1 -> P2 : deny
158 * '------' \ P2 -> P1 : deny
174 * | P1----. | P1 -> P2 : allow
175 * | \ | P2 -> P1 : allow
191 * | P1----. | P1 -> P2 : allow
192 * | \ | P2 -> P1 : deny
209 * |.------. | P1 -> P2 : deny
210 * || P1 ----. | P2 -> P1 : allow
227 * | .------. | P1 -> P2 : deny
228 * | | P1 . | P2 -> P1 : deny
325 ASSERT_EQ(0, close(pipe_parent[1])); in TEST_F()
331 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
346 EXPECT_EQ(-1, ret); in TEST_F()
351 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
360 EXPECT_EQ(-1, ret); in TEST_F()
368 ASSERT_EQ(1, write(pipe_child[1], ".", 1)); in TEST_F()
375 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F()
380 ASSERT_EQ(0, close(pipe_child[1])); in TEST_F()
386 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()
392 ASSERT_EQ(1, read(pipe_child[0], &buf_parent, 1)); in TEST_F()
397 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
401 EXPECT_EQ(-1, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
418 EXPECT_EQ(-1, ret); in TEST_F()
424 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F()
429 ASSERT_EQ(1, write(pipe_parent[1], ".", 1)); in TEST_F()