Home
last modified time | relevance | path

Searched refs:path_beneath_attr (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/landlock/
H A Dbase_test.c150 struct landlock_path_beneath_attr path_beneath_attr = { in TEST() local
178 &path_beneath_attr, 0)); in TEST()
182 path_beneath_attr.parent_fd = in TEST()
184 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST()
186 &path_beneath_attr, 0)); in TEST()
187 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST()
197 struct landlock_path_beneath_attr path_beneath_attr = { in TEST() local
205 path_beneath_attr.parent_fd = in TEST()
207 ASSERT_LE(0, path_beneath_attr.parent_fd); in TEST()
209 &path_beneath_attr, 0)); in TEST()
[all …]
/linux/security/landlock/
H A Dsyscalls.c89 struct landlock_path_beneath_attr path_beneath_attr; in build_check_abi() local
104 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi()
105 path_beneath_size += sizeof(path_beneath_attr.parent_fd); in build_check_abi()
106 BUILD_BUG_ON(sizeof(path_beneath_attr) != path_beneath_size); in build_check_abi()
107 BUILD_BUG_ON(sizeof(path_beneath_attr) != 12); in build_check_abi()
313 struct landlock_path_beneath_attr path_beneath_attr; in add_rule_path_beneath() local
319 res = copy_from_user(&path_beneath_attr, rule_attr, in add_rule_path_beneath()
320 sizeof(path_beneath_attr)); in add_rule_path_beneath()
328 if (!path_beneath_attr.allowed_access) in add_rule_path_beneath()
333 if ((path_beneath_attr.allowed_access | mask) != mask) in add_rule_path_beneath()
[all …]
/linux/tools/perf/tests/workloads/
H A Dlandlock.c47 struct landlock_path_beneath_attr path_beneath_attr = { in landlock() local
58 &path_beneath_attr, flags); in landlock()