Lines Matching refs:ruleset_fd
105 int ruleset_fd; in TEST() local
137 ruleset_fd = in TEST()
139 ASSERT_LE(0, ruleset_fd); in TEST()
140 ASSERT_EQ(0, close(ruleset_fd)); in TEST()
153 const int ruleset_fd = in TEST() local
156 ASSERT_LE(0, ruleset_fd); in TEST()
167 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, 0, NULL, 0)); in TEST()
171 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST()
176 ASSERT_EQ(-1, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST()
184 ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST()
187 ASSERT_EQ(0, close(ruleset_fd)); in TEST()
200 const int ruleset_fd = in TEST() local
203 ASSERT_LE(0, ruleset_fd); in TEST()
207 ASSERT_EQ(0, landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, in TEST()
217 ASSERT_EQ(-1, landlock_restrict_self(ruleset_fd, 0)); in TEST()
231 ASSERT_EQ(0, landlock_restrict_self(ruleset_fd, 0)); in TEST()
232 ASSERT_EQ(0, close(ruleset_fd)); in TEST()
240 int ruleset_fd; in TEST() local
244 ruleset_fd = in TEST()
246 ASSERT_LE(0, ruleset_fd); in TEST()
248 ASSERT_EQ(-1, write(ruleset_fd, ".", 1)); in TEST()
250 ASSERT_EQ(-1, read(ruleset_fd, &buf, 1)); in TEST()
253 ASSERT_EQ(0, close(ruleset_fd)); in TEST()