Home
last modified time | relevance | path

Searched refs:path_beneath (Results 1 – 4 of 4) sorted by relevance

/linux/samples/landlock/
A Dsandboxer.c117 struct landlock_path_beneath_attr path_beneath = { in populate_ruleset_fs() local
142 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset_fs()
143 if (path_beneath.parent_fd < 0) { in populate_ruleset_fs()
148 if (fstat(path_beneath.parent_fd, &statbuf)) { in populate_ruleset_fs()
151 close(path_beneath.parent_fd); in populate_ruleset_fs()
154 path_beneath.allowed_access = allowed_access; in populate_ruleset_fs()
156 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset_fs()
158 &path_beneath, 0)) { in populate_ruleset_fs()
162 close(path_beneath.parent_fd); in populate_ruleset_fs()
165 close(path_beneath.parent_fd); in populate_ruleset_fs()
/linux/tools/testing/selftests/landlock/
A Dfs_test.c469 path_beneath.parent_fd = in TEST_F_FORK()
476 &path_beneath, 0)); in TEST_F_FORK()
484 &path_beneath, 0)); in TEST_F_FORK()
507 &path_beneath, 0)); in TEST_F_FORK()
511 path_beneath.parent_fd = in TEST_F_FORK()
518 &path_beneath, 0)); in TEST_F_FORK()
525 &path_beneath, 0)); in TEST_F_FORK()
532 &path_beneath, 0)); in TEST_F_FORK()
539 &path_beneath, 0)); in TEST_F_FORK()
687 &path_beneath, 0); in TEST_F_FORK()
[all …]
A Dnet_test.c1506 struct landlock_path_beneath_attr path_beneath = { in TEST_F() local
1522 path_beneath.parent_fd = open("/dev", O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F()
1523 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F()
1525 &path_beneath, 0)); in TEST_F()
1526 EXPECT_EQ(0, close(path_beneath.parent_fd)); in TEST_F()
/linux/Documentation/userspace-api/
A Dlandlock.rst154 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);

Completed in 18 milliseconds