Searched refs:parent_fd (Results 1 – 7 of 7) sorted by relevance
/linux/tools/testing/selftests/landlock/ |
H A D | base_test.c | 152 .parent_fd = -1, in TEST() 182 path_beneath_attr.parent_fd = in TEST() 184 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST() 187 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 199 .parent_fd = -1, in TEST() 205 path_beneath_attr.parent_fd = in TEST() 207 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST() 210 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 277 path_beneath_attr.parent_fd = in TEST() 279 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST() [all …]
|
H A D | net_test.c | 1604 .parent_fd = -1, in TEST_F() 1618 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() 1622 EXPECT_EQ(0, close(path_beneath.parent_fd)); in TEST_F()
|
/linux/samples/landlock/ |
H A D | sandboxer.c | 121 .parent_fd = -1, in populate_ruleset_fs() 149 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() 169 close(path_beneath.parent_fd); in populate_ruleset_fs() 172 close(path_beneath.parent_fd); in populate_ruleset_fs()
|
/linux/tools/perf/tests/workloads/ |
H A D | landlock.c | 28 __s32 parent_fd; member 49 .parent_fd = 14, in landlock()
|
/linux/security/landlock/ |
H A D | syscalls.c | 106 path_beneath_size += sizeof(path_beneath_attr.parent_fd); in build_check_abi() 273 fd, ((struct landlock_path_beneath_attr *)NULL)->parent_fd)); in get_path_from_fd() 321 err = get_path_from_fd(path_beneath_attr.parent_fd, &path); in add_rule_path_beneath()
|
/linux/include/uapi/linux/ |
H A D | landlock.h | 99 __s32 parent_fd; member
|
/linux/Documentation/userspace-api/ |
H A D | landlock.rst | 161 path_beneath.parent_fd = open("/usr", O_PATH | O_CLOEXEC); 162 if (path_beneath.parent_fd < 0) { 169 close(path_beneath.parent_fd);
|