Searched refs:parent_fd (Results 1 – 6 of 6) sorted by relevance
| /linux/samples/landlock/ |
| A D | sandboxer.c | 86 .parent_fd = -1, in populate_ruleset() 110 path_beneath.parent_fd = open(path_list[i], O_PATH | in populate_ruleset() 112 if (path_beneath.parent_fd < 0) { in populate_ruleset() 118 if (fstat(path_beneath.parent_fd, &statbuf)) { in populate_ruleset() 119 close(path_beneath.parent_fd); in populate_ruleset() 129 close(path_beneath.parent_fd); in populate_ruleset() 132 close(path_beneath.parent_fd); in populate_ruleset()
|
| /linux/security/landlock/ |
| A D | syscalls.c | 88 path_beneath_size += sizeof(path_beneath_attr.parent_fd); in build_check_abi() 248 ((struct landlock_path_beneath_attr *)NULL)->parent_fd)); in get_path_from_fd() 353 err = get_path_from_fd(path_beneath_attr.parent_fd, &path); in SYSCALL_DEFINE4()
|
| /linux/tools/testing/selftests/landlock/ |
| A D | base_test.c | 203 path_beneath_attr.parent_fd = open("/tmp", O_PATH | O_NOFOLLOW | in TEST() 205 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST() 208 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST()
|
| A D | fs_test.c | 295 .parent_fd = -1, in TEST_F_FORK() 305 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK() 329 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK() 333 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK() 336 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK() 339 path_beneath.parent_fd = ruleset_fd; in TEST_F_FORK() 347 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK() 370 ASSERT_EQ(0, close(path_beneath.parent_fd)); in TEST_F_FORK() 414 ASSERT_LE(0, path_beneath.parent_fd); in TEST_F_FORK() 438 ASSERT_LE(0, path_beneath.parent_fd) { in add_path_beneath() [all …]
|
| /linux/include/uapi/linux/ |
| A D | landlock.h | 66 __s32 parent_fd; member
|
| /linux/Documentation/userspace-api/ |
| A D | landlock.rst | 80 path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC); 81 if (path_beneath.parent_fd < 0) { 88 close(path_beneath.parent_fd);
|
Completed in 592 milliseconds