Lines Matching refs:access
581 __u64 access; in TEST_F_FORK() local
602 for (access = 1; access <= ACCESS_LAST; access <<= 1) { in TEST_F_FORK()
603 path_beneath_dir.allowed_access = access; in TEST_F_FORK()
608 path_beneath_file.allowed_access = access; in TEST_F_FORK()
611 if (access & ACCESS_FILE) { in TEST_F_FORK()
641 __u64 access; in TEST_F_FORK() local
655 for (access = 1ULL << 63; access != ACCESS_LAST; access >>= 1) { in TEST_F_FORK()
656 path_beneath.allowed_access = access; in TEST_F_FORK()
673 __u64 access; in TEST_F_FORK() local
682 for (access = 1; access > 0; access <<= 1) { in TEST_F_FORK()
685 path_beneath.allowed_access = access; in TEST_F_FORK()
688 if (access == ruleset_attr.handled_access_fs) { in TEST_F_FORK()
725 __u64 access; member
766 if (!rules[i].access) in create_ruleset()
769 add_path_beneath(_metadata, ruleset_fd, rules[i].access, in create_ruleset()
780 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
787 _metadata, rules[0].access | LANDLOCK_ACCESS_FS_READ_DIR, in TEST_F_FORK()
829 .access = ACCESS_RO, in TEST_F_FORK()
852 .access = ACCESS_RO, in TEST_F_FORK()
856 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
910 .access = ACCESS_RO, in TEST_F_FORK()
938 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
943 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
978 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
983 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
991 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
1000 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
1085 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
1092 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
1149 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1158 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
1164 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
1172 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1183 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1194 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1205 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
1216 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
1319 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
1436 .access = ACCESS_RO, in TEST_F_FORK()
1474 .access = ACCESS_RO, in TEST_F_FORK()
1531 .access = ACCESS_RO, in TEST_F_FORK()
1536 .access = ACCESS_RO, in TEST_F_FORK()
1560 .access = ACCESS_RO, in TEST_F_FORK()
1565 .access = ACCESS_RO, in TEST_F_FORK()
1593 .access = ACCESS_RO, in TEST_F_FORK()
1607 rules[0].access = LANDLOCK_ACCESS_FS_READ_FILE; in TEST_F_FORK()
1623 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
1643 .access = ACCESS_RO, in TEST_F_FORK()
1671 .access = ACCESS_RO, in TEST_F_FORK()
1694 .access = ACCESS_RO, in TEST_F_FORK()
1787 .access = ACCESS_RO, in TEST_F_FORK()
1791 .access = ACCESS_RO, in TEST_F_FORK()
1795 .access = ACCESS_RO, in TEST_F_FORK()
1833 .access = ACCESS_RO, in test_relative_path()
1840 .access = ACCESS_RO, in test_relative_path()
1844 .access = ACCESS_RO, in test_relative_path()
2016 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
2021 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2049 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2056 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
2060 int ruleset_fd = create_ruleset(_metadata, layer1[0].access, layer1); in TEST_F_FORK()
2089 ruleset_fd = create_ruleset(_metadata, layer2[0].access, layer2); in TEST_F_FORK()
2118 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
2122 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
2127 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2200 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
2204 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
2209 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
2264 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2268 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2311 ruleset_fd = create_ruleset(_metadata, layer1[0].access, layer1); in refer_denied_by_default()
2326 ruleset_fd = create_ruleset(_metadata, layer2[0].access, layer2); in refer_denied_by_default()
2345 .access = LANDLOCK_ACCESS_FS_REFER,
2354 .access = LANDLOCK_ACCESS_FS_EXECUTE,
2363 .access = LANDLOCK_ACCESS_FS_EXECUTE,
2452 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2456 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2460 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2464 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2530 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2534 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2538 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
2542 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in TEST_F_FORK()
2675 .access = LANDLOCK_ACCESS_FS_REFER, in reparent_exdev_layers_enforce1()
2680 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in reparent_exdev_layers_enforce1()
2684 .access = LANDLOCK_ACCESS_FS_REFER, in reparent_exdev_layers_enforce1()
2688 .access = LANDLOCK_ACCESS_FS_MAKE_REG, in reparent_exdev_layers_enforce1()
2707 .access = LANDLOCK_ACCESS_FS_MAKE_DIR, in reparent_exdev_layers_enforce2()
2975 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
2980 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
2984 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
3037 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
3041 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
3045 .access = LANDLOCK_ACCESS_FS_MAKE_SOCK | in TEST_F_FORK()
3050 .access = LANDLOCK_ACCESS_FS_REFER | in TEST_F_FORK()
3056 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3130 .access = LANDLOCK_ACCESS_FS_REMOVE_DIR, in TEST_F_FORK()
3135 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3167 .access = LANDLOCK_ACCESS_FS_REMOVE_FILE, in TEST_F_FORK()
3172 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3187 const __u64 access, const mode_t mode, in test_make_file() argument
3193 .access = access, in test_make_file()
3197 const int ruleset_fd = create_ruleset(_metadata, access, rules); in test_make_file()
3281 .access = LANDLOCK_ACCESS_FS_MAKE_SYM, in TEST_F_FORK()
3286 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3326 .access = LANDLOCK_ACCESS_FS_MAKE_DIR, in TEST_F_FORK()
3331 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3366 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3409 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3416 create_ruleset(_metadata, rules[0].access, rules); in TEST_F_FORK()
3500 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
3504 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3563 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3569 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3574 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
3579 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3584 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3588 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3681 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3689 .access = LANDLOCK_ACCESS_FS_TRUNCATE, in TEST_F_FORK()
3698 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
3817 .access = variant->allowed, in TEST_F_FORK()
3858 .access = variant->allowed, in TEST_F_FORK()
4253 .access = variant->allowed, in TEST_F_FORK()
4288 .access = variant->allowed, in TEST_F_FORK()
4333 .access = variant->allowed, in TEST_F_FORK()
4449 .access = ACCESS_RO, in TEST_F_FORK()
4453 .access = ACCESS_RW, in TEST_F_FORK()
4465 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4469 .access = ACCESS_RW, in TEST_F_FORK()
4477 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4485 .access = LANDLOCK_ACCESS_FS_WRITE_FILE, in TEST_F_FORK()
4582 .access = LANDLOCK_ACCESS_FS_REFER, in TEST_F_FORK()
4586 .access = LANDLOCK_ACCESS_FS_EXECUTE, in TEST_F_FORK()
4859 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4863 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4867 .access = ACCESS_RW, in TEST_F_FORK()
4874 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4878 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4882 .access = ACCESS_RW, in TEST_F_FORK()
4890 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4894 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4898 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4902 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4906 .access = ACCESS_RW, in TEST_F_FORK()
4910 .access = ACCESS_RW, in TEST_F_FORK()
4914 .access = ACCESS_RW, in TEST_F_FORK()
4922 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4926 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4930 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4934 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4938 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4942 .access = LANDLOCK_ACCESS_FS_READ_FILE, in TEST_F_FORK()
4946 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4951 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4956 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4961 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4966 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
4974 .access = LANDLOCK_ACCESS_FS_READ_FILE | in TEST_F_FORK()
5290 .access = LANDLOCK_ACCESS_FS_READ_FILE, in layer3_fs_tag_inode()
5361 .access = LANDLOCK_ACCESS_FS_READ_DIR, in TEST_F_FORK()