Searched refs:path_beneath (Results 1 – 3 of 3) sorted by relevance
120 struct landlock_path_beneath_attr path_beneath = { in populate_ruleset_fs() local149 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset_fs()150 if (path_beneath.parent_fd < 0) { in populate_ruleset_fs()155 if (fstat(path_beneath.parent_fd, &statbuf)) { in populate_ruleset_fs()158 close(path_beneath.parent_fd); in populate_ruleset_fs()161 path_beneath.allowed_access = allowed_access; in populate_ruleset_fs()163 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset_fs()165 &path_beneath, 0)) { in populate_ruleset_fs()169 close(path_beneath.parent_fd); in populate_ruleset_fs()172 close(path_beneath.parent_fd); in populate_ruleset_fs()
1602 struct landlock_path_beneath_attr path_beneath = { in TEST_F() local1618 path_beneath.parent_fd = open("/dev", O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F()1619 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F()1621 &path_beneath, 0)); in TEST_F()1622 EXPECT_EQ(0, close(path_beneath.parent_fd)); in TEST_F()
154 struct landlock_path_beneath_attr path_beneath = {161 path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC);162 if (path_beneath.parent_fd < 0) {168 &path_beneath, 0);169 close(path_beneath.parent_fd);