Searched refs:path_beneath_attr (Results 1 – 3 of 3) sorted by relevance
| /linux-6.15/tools/testing/selftests/landlock/ |
| H A D | base_test.c | 222 &path_beneath_attr, 0)); in TEST() 226 path_beneath_attr.parent_fd = in TEST() 228 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST() 230 &path_beneath_attr, 0)); in TEST() 231 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST() 249 path_beneath_attr.parent_fd = in TEST() 251 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST() 253 &path_beneath_attr, 0)); in TEST() 403 path_beneath_attr.parent_fd = in TEST() 405 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST() [all …]
|
| /linux-6.15/security/landlock/ |
| H A D | syscalls.c | 93 struct landlock_path_beneath_attr path_beneath_attr; in build_check_abi() local 108 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi() 109 path_beneath_size += sizeof(path_beneath_attr.parent_fd); in build_check_abi() 110 BUILD_BUG_ON(sizeof(path_beneath_attr) != path_beneath_size); in build_check_abi() 111 BUILD_BUG_ON(sizeof(path_beneath_attr) != 12); in build_check_abi() 318 struct landlock_path_beneath_attr path_beneath_attr; in add_rule_path_beneath() local 324 res = copy_from_user(&path_beneath_attr, rule_attr, in add_rule_path_beneath() 325 sizeof(path_beneath_attr)); in add_rule_path_beneath() 333 if (!path_beneath_attr.allowed_access) in add_rule_path_beneath() 338 if ((path_beneath_attr.allowed_access | mask) != mask) in add_rule_path_beneath() [all …]
|
| /linux-6.15/tools/perf/tests/workloads/ |
| H A D | landlock.c | 47 struct landlock_path_beneath_attr path_beneath_attr = { in landlock() local 58 &path_beneath_attr, flags); in landlock()
|