Lines Matching refs:access

552 	__u64 access;  in TEST_F_FORK()  local
573 for (access = 1; access <= ACCESS_LAST; access <<= 1) { in TEST_F_FORK()
574 path_beneath_dir.allowed_access = access; in TEST_F_FORK()
579 path_beneath_file.allowed_access = access; in TEST_F_FORK()
582 if (access & ACCESS_FILE) { in TEST_F_FORK()
635 __u64 access; member
676 add_path_beneath(_metadata, ruleset_fd, rules[i].access, in create_ruleset()
697 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
704 _metadata, rules[0].access | LANDLOCK_ACCESS_FS_READ_DIR, in TEST_F_FORK()
746 .access = ACCESS_RO, in TEST_F_FORK()
769 .access = ACCESS_RO, in TEST_F_FORK()
773 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
827 .access = ACCESS_RO, in TEST_F_FORK()
855 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
860 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
895 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
900 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
908 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
917 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
1002 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
1009 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
1066 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1075 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
1081 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
1089 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1100 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1111 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1122 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
1133 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
1236 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
1353 .access = ACCESS_RO, in TEST_F_FORK()
1391 .access = ACCESS_RO, in TEST_F_FORK()
1448 .access = ACCESS_RO, in TEST_F_FORK()
1453 .access = ACCESS_RO, in TEST_F_FORK()
1477 .access = ACCESS_RO, in TEST_F_FORK()
1482 .access = ACCESS_RO, in TEST_F_FORK()
1510 .access = ACCESS_RO, in TEST_F_FORK()
1524 rules[0].access = LANDLOCK_ACCESS_FS_READ_FILE; in TEST_F_FORK()
1540 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1560 .access = ACCESS_RO, in TEST_F_FORK()
1588 .access = ACCESS_RO, in TEST_F_FORK()
1611 .access = ACCESS_RO, in TEST_F_FORK()
1645 .access = ACCESS_RO, in TEST_F_FORK()
1649 .access = ACCESS_RO, in TEST_F_FORK()
1653 .access = ACCESS_RO, in TEST_F_FORK()
1691 .access = ACCESS_RO, in test_relative_path()
1698 .access = ACCESS_RO, in test_relative_path()
1702 .access = ACCESS_RO, in test_relative_path()
1874 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
1879 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
1907 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
1914 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
1918 int ruleset_fd = create_ruleset(_metadata, layer1[0].access, layer1); in TEST_F_FORK()
1947 ruleset_fd = create_ruleset(_metadata, layer2[0].access, layer2); in TEST_F_FORK()
1976 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
1980 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
1985 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2058 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
2062 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
2067 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2122 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2126 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2169 ruleset_fd = create_ruleset(_metadata, layer1[0].access, layer1); in refer_denied_by_default()
2184 ruleset_fd = create_ruleset(_metadata, layer2[0].access, layer2); in refer_denied_by_default()
2203 .access = LANDLOCK_ACCESS_FS_REFER,
2212 .access = LANDLOCK_ACCESS_FS_EXECUTE,
2221 .access = LANDLOCK_ACCESS_FS_EXECUTE,
2273 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2277 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2281 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2285 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2351 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2355 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2359 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2363 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2496 .access = LANDLOCK_ACCESS_FS_REFER, in reparent_exdev_layers_enforce1()
2501 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in reparent_exdev_layers_enforce1()
2505 .access = LANDLOCK_ACCESS_FS_REFER, in reparent_exdev_layers_enforce1()
2509 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in reparent_exdev_layers_enforce1()
2528 .access = LANDLOCK_ACCESS_FS_MAKE_DIR, in reparent_exdev_layers_enforce2()
2796 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
2801 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
2805 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
2858 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2862 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
2866 .access = LANDLOCK_ACCESS_FS_MAKE_SOCK | in TEST_F_FORK()
2871 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
2877 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
2951 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
2956 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2988 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
2993 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3008 const __u64 access, const mode_t mode, in test_make_file() argument
3014 .access = access, in test_make_file()
3018 const int ruleset_fd = create_ruleset(_metadata, access, rules); in test_make_file()
3102 .access = LANDLOCK_ACCESS_FS_MAKE_SYM, in TEST_F_FORK()
3107 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3147 .access = LANDLOCK_ACCESS_FS_MAKE_DIR, in TEST_F_FORK()
3152 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3187 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3230 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3237 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3321 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3325 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3384 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3390 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3395 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3400 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3405 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3409 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3502 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3510 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3519 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3639 .access = variant->permitted, in TEST_F_FORK()
3680 .access = variant->permitted, in TEST_F_FORK()
3824 .access = ACCESS_RO, in TEST_F_FORK()
3828 .access = ACCESS_RW, in TEST_F_FORK()
3840 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3844 .access = ACCESS_RW, in TEST_F_FORK()
3852 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3860 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3957 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
3961 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
4238 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4242 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4246 .access = ACCESS_RW, in TEST_F_FORK()
4253 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4257 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4261 .access = ACCESS_RW, in TEST_F_FORK()
4269 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4273 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4277 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4281 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4285 .access = ACCESS_RW, in TEST_F_FORK()
4289 .access = ACCESS_RW, in TEST_F_FORK()
4293 .access = ACCESS_RW, in TEST_F_FORK()
4301 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4305 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4309 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4313 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4317 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4321 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4325 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4330 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4335 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4340 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4345 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4353 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4664 .access = LANDLOCK_ACCESS_FS_READ_FILE, in layer3_fs_tag_inode()
4732 .access = LANDLOCK_ACCESS_FS_READ_DIR, in TEST_F_FORK()