Lines Matching refs:access
471 __u64 access; in TEST_F_FORK() local
492 for (access = 1; access <= ACCESS_LAST; access <<= 1) { in TEST_F_FORK()
493 path_beneath_dir.allowed_access = access; in TEST_F_FORK()
498 path_beneath_file.allowed_access = access; in TEST_F_FORK()
501 if (access & ACCESS_FILE) { in TEST_F_FORK()
554 __u64 access; member
595 add_path_beneath(_metadata, ruleset_fd, rules[i].access, in create_ruleset()
616 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
623 _metadata, rules[0].access | LANDLOCK_ACCESS_FS_READ_DIR, in TEST_F_FORK()
665 .access = ACCESS_RO, in TEST_F_FORK()
688 .access = ACCESS_RO, in TEST_F_FORK()
692 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
746 .access = ACCESS_RO, in TEST_F_FORK()
774 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
779 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
814 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
819 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
827 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
836 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
921 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
928 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
985 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
994 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
1000 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
1008 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1019 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1030 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1041 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
1052 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
1155 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
1272 .access = ACCESS_RO, in TEST_F_FORK()
1310 .access = ACCESS_RO, in TEST_F_FORK()
1367 .access = ACCESS_RO, in TEST_F_FORK()
1372 .access = ACCESS_RO, in TEST_F_FORK()
1396 .access = ACCESS_RO, in TEST_F_FORK()
1401 .access = ACCESS_RO, in TEST_F_FORK()
1429 .access = ACCESS_RO, in TEST_F_FORK()
1443 rules[0].access = LANDLOCK_ACCESS_FS_READ_FILE; in TEST_F_FORK()
1459 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1479 .access = ACCESS_RO, in TEST_F_FORK()
1507 .access = ACCESS_RO, in TEST_F_FORK()
1530 .access = ACCESS_RO, in TEST_F_FORK()
1564 .access = ACCESS_RO, in TEST_F_FORK()
1568 .access = ACCESS_RO, in TEST_F_FORK()
1572 .access = ACCESS_RO, in TEST_F_FORK()
1610 .access = ACCESS_RO, in test_relative_path()
1617 .access = ACCESS_RO, in test_relative_path()
1621 .access = ACCESS_RO, in test_relative_path()
1793 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
1798 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
1826 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
1833 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
1837 int ruleset_fd = create_ruleset(_metadata, layer1[0].access, layer1); in TEST_F_FORK()
1866 ruleset_fd = create_ruleset(_metadata, layer2[0].access, layer2); in TEST_F_FORK()
1895 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
1899 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
1904 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
1977 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
1981 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
1986 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2041 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2045 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2088 ruleset_fd = create_ruleset(_metadata, layer1[0].access, layer1); in refer_denied_by_default()
2103 ruleset_fd = create_ruleset(_metadata, layer2[0].access, layer2); in refer_denied_by_default()
2122 .access = LANDLOCK_ACCESS_FS_REFER,
2131 .access = LANDLOCK_ACCESS_FS_EXECUTE,
2140 .access = LANDLOCK_ACCESS_FS_EXECUTE,
2192 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2196 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2200 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2204 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2270 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2274 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2278 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2282 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2415 .access = LANDLOCK_ACCESS_FS_REFER, in reparent_exdev_layers_enforce1()
2420 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in reparent_exdev_layers_enforce1()
2424 .access = LANDLOCK_ACCESS_FS_REFER, in reparent_exdev_layers_enforce1()
2428 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in reparent_exdev_layers_enforce1()
2447 .access = LANDLOCK_ACCESS_FS_MAKE_DIR, in reparent_exdev_layers_enforce2()
2715 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
2720 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
2724 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
2777 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2781 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
2785 .access = LANDLOCK_ACCESS_FS_MAKE_SOCK | in TEST_F_FORK()
2790 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
2796 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
2870 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
2875 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2907 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
2912 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2927 const __u64 access, const mode_t mode, in test_make_file() argument
2933 .access = access, in test_make_file()
2937 const int ruleset_fd = create_ruleset(_metadata, access, rules); in test_make_file()
3021 .access = LANDLOCK_ACCESS_FS_MAKE_SYM, in TEST_F_FORK()
3026 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3066 .access = LANDLOCK_ACCESS_FS_MAKE_DIR, in TEST_F_FORK()
3071 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3106 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3149 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3156 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3240 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3244 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3303 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3309 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3314 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3319 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3324 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3328 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3421 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3429 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3438 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3558 .access = variant->permitted, in TEST_F_FORK()
3599 .access = variant->permitted, in TEST_F_FORK()
3743 .access = ACCESS_RO, in TEST_F_FORK()
3747 .access = ACCESS_RW, in TEST_F_FORK()
3759 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3763 .access = ACCESS_RW, in TEST_F_FORK()
3771 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3779 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3876 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
3880 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
4154 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4158 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4162 .access = ACCESS_RW, in TEST_F_FORK()
4169 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4173 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4177 .access = ACCESS_RW, in TEST_F_FORK()
4185 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4189 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4193 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4197 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4201 .access = ACCESS_RW, in TEST_F_FORK()
4205 .access = ACCESS_RW, in TEST_F_FORK()
4209 .access = ACCESS_RW, in TEST_F_FORK()
4217 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4221 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4225 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4229 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4233 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4237 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4241 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4246 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4251 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4256 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4261 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4269 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()