Searched refs:path_beneath (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/samples/landlock/ |
H A D | sandboxer.c | 90 struct landlock_path_beneath_attr path_beneath = { in populate_ruleset() local 115 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset() 116 if (path_beneath.parent_fd < 0) { in populate_ruleset() 121 if (fstat(path_beneath.parent_fd, &statbuf)) { in populate_ruleset() 122 close(path_beneath.parent_fd); in populate_ruleset() 125 path_beneath.allowed_access = allowed_access; in populate_ruleset() 127 path_beneath.allowed_access &= ACCESS_FILE; in populate_ruleset() 129 &path_beneath, 0)) { in populate_ruleset() 133 close(path_beneath.parent_fd); in populate_ruleset() 136 close(path_beneath.parent_fd); in populate_ruleset()
|
/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 441 path_beneath.parent_fd = in TEST_F_FORK() 448 &path_beneath, 0)); in TEST_F_FORK() 456 &path_beneath, 0)); in TEST_F_FORK() 479 &path_beneath, 0)); in TEST_F_FORK() 483 path_beneath.parent_fd = in TEST_F_FORK() 490 &path_beneath, 0)); in TEST_F_FORK() 497 &path_beneath, 0)); in TEST_F_FORK() 504 &path_beneath, 0)); in TEST_F_FORK() 511 &path_beneath, 0)); in TEST_F_FORK() 625 &path_beneath, 0)) in add_path_beneath() [all …]
|
/openbmc/linux/Documentation/userspace-api/ |
H A D | landlock.rst | 119 struct landlock_path_beneath_attr path_beneath = { 126 path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC); 127 if (path_beneath.parent_fd < 0) { 133 &path_beneath, 0); 134 close(path_beneath.parent_fd);
|