Home
last modified time | relevance | path

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

/linux/security/landlock/
A Dsyscalls.c75 struct landlock_path_beneath_attr path_beneath_attr; in build_check_abi() local
87 path_beneath_size = sizeof(path_beneath_attr.allowed_access); in build_check_abi()
88 path_beneath_size += sizeof(path_beneath_attr.parent_fd); in build_check_abi()
89 BUILD_BUG_ON(sizeof(path_beneath_attr) != path_beneath_size); in build_check_abi()
90 BUILD_BUG_ON(sizeof(path_beneath_attr) != 12); in build_check_abi()
308 struct landlock_path_beneath_attr path_beneath_attr; in SYSCALL_DEFINE4() local
324 res = copy_from_user(&path_beneath_attr, rule_attr, in SYSCALL_DEFINE4()
325 sizeof(path_beneath_attr)); in SYSCALL_DEFINE4()
338 if (!path_beneath_attr.allowed_access) { in SYSCALL_DEFINE4()
353 err = get_path_from_fd(path_beneath_attr.parent_fd, &path); in SYSCALL_DEFINE4()
[all …]
/linux/tools/testing/selftests/landlock/
A Dbase_test.c172 struct landlock_path_beneath_attr path_beneath_attr = { in TEST() local
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()
207 &path_beneath_attr, 0)); in TEST()
208 ASSERT_EQ(0, close(path_beneath_attr.parent_fd)); in TEST()

Completed in 4 milliseconds