Home
last modified time | relevance | path

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

/linux-6.15/samples/landlock/
H A Dsandboxer.c121 struct landlock_path_beneath_attr path_beneath = { in populate_ruleset_fs() local
150 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset_fs()
151 if (path_beneath.parent_fd < 0) { in populate_ruleset_fs()
156 if (fstat(path_beneath.parent_fd, &statbuf)) { in populate_ruleset_fs()
159 close(path_beneath.parent_fd); in populate_ruleset_fs()
162 path_beneath.allowed_access = allowed_access; in populate_ruleset_fs()
164 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset_fs()
166 &path_beneath, 0)) { in populate_ruleset_fs()
170 close(path_beneath.parent_fd); in populate_ruleset_fs()
173 close(path_beneath.parent_fd); in populate_ruleset_fs()
/linux-6.15/tools/testing/selftests/landlock/
H A Dfs_test.c488 path_beneath.parent_fd = in TEST_F_FORK()
495 &path_beneath, 0)); in TEST_F_FORK()
503 &path_beneath, 0)); in TEST_F_FORK()
526 &path_beneath, 0)); in TEST_F_FORK()
530 path_beneath.parent_fd = in TEST_F_FORK()
537 &path_beneath, 0)); in TEST_F_FORK()
544 &path_beneath, 0)); in TEST_F_FORK()
551 &path_beneath, 0)); in TEST_F_FORK()
558 &path_beneath, 0)); in TEST_F_FORK()
706 &path_beneath, 0); in TEST_F_FORK()
[all …]
H A Dnet_test.c1603 struct landlock_path_beneath_attr path_beneath = { in TEST_F() local
1619 path_beneath.parent_fd = open("/dev", O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F()
1620 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F()
1622 &path_beneath, 0)); in TEST_F()
1623 EXPECT_EQ(0, close(path_beneath.parent_fd)); in TEST_F()
/linux-6.15/Documentation/userspace-api/
H 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);