Lines Matching refs:PROT_READ
174 ptr = mmap(NULL, size, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in setup_single_address()
183 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, mapflags, -1, 0); in setup_single_address_rw()
207 ptr = mmap(NULL, page_size, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in seal_support()
260 ret = sys_mprotect(ptr, size, PROT_READ | PROT_WRITE); in test_seal_unmapped_start()
288 ret = sys_mprotect(ptr, size, PROT_READ | PROT_WRITE); in test_seal_unmapped_middle()
320 ret = sys_mprotect(ptr, size, PROT_READ | PROT_WRITE); in test_seal_unmapped_end()
346 PROT_READ | PROT_WRITE); in test_seal_multiple_vmas()
350 ret = sys_mprotect(ptr, size, PROT_READ); in test_seal_multiple_vmas()
355 PROT_READ | PROT_WRITE); in test_seal_multiple_vmas()
376 ret = sys_mprotect(ptr, 2 * page_size, PROT_READ | PROT_WRITE); in test_seal_split_start()
401 ret = sys_mprotect(ptr, 2 * page_size, PROT_READ | PROT_WRITE); in test_seal_split_end()
460 ret = sys_mprotect(ptr, 0, PROT_READ | PROT_WRITE); in test_seal_zero_length()
468 ret = sys_mprotect(ptr, size, PROT_READ | PROT_WRITE); in test_seal_zero_length()
494 ret = sys_mprotect(ptr, size, PROT_READ | PROT_WRITE); in test_seal_zero_address()
535 ret = sys_mprotect(ptr, size, PROT_READ | PROT_WRITE); in test_seal_mprotect()
560 ret = sys_mprotect(ptr, page_size, PROT_READ | PROT_WRITE); in test_seal_start_mprotect()
568 PROT_READ | PROT_WRITE); in test_seal_start_mprotect()
590 ret = sys_mprotect(ptr, page_size, PROT_READ | PROT_WRITE); in test_seal_end_mprotect()
595 PROT_READ | PROT_WRITE); in test_seal_end_mprotect()
620 ret = sys_mprotect(ptr, page_size * 2, PROT_READ | PROT_WRITE); in test_seal_mprotect_unalign_len()
627 PROT_READ | PROT_WRITE); in test_seal_mprotect_unalign_len()
648 ret = sys_mprotect(ptr, page_size * 3, PROT_READ | PROT_WRITE); in test_seal_mprotect_unalign_len_variant_2()
655 PROT_READ | PROT_WRITE); in test_seal_mprotect_unalign_len_variant_2()
672 ret = sys_mprotect(ptr, page_size * 2, PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma()
680 ret = sys_mprotect(ptr, page_size * 2, PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma()
687 PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma()
707 ret = sys_mprotect(ptr, page_size * 2, PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma_with_split()
717 ret = sys_mprotect(ptr, page_size, PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma_with_split()
721 ret = sys_mprotect(ptr + page_size, page_size, PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma_with_split()
729 PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma_with_split()
737 PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma_with_split()
760 ret = sys_mprotect(ptr, 2 * page_size, PROT_READ | PROT_WRITE); in test_seal_mprotect_partial_mprotect()
816 ret = sys_mprotect(ptr, page_size, PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma_with_gap()
821 PROT_READ | PROT_WRITE); in test_seal_mprotect_two_vma_with_gap()
830 ret = sys_mprotect(ptr, 4 * page_size, PROT_READ); in test_seal_mprotect_two_vma_with_gap()
838 ret = sys_mprotect(ptr, page_size, PROT_READ); in test_seal_mprotect_two_vma_with_gap()
842 ret = sys_mprotect(ptr + 3 * page_size, page_size, PROT_READ); in test_seal_mprotect_two_vma_with_gap()
859 ret = sys_mprotect(ptr, page_size, PROT_READ | PROT_WRITE); in test_seal_mprotect_split()
869 ret = sys_mprotect(ptr, 2 * page_size, PROT_READ); in test_seal_mprotect_split()
876 ret = sys_mprotect(ptr + 2 * page_size, 2 * page_size, PROT_READ); in test_seal_mprotect_split()
896 ret = sys_mprotect(ptr, page_size, PROT_READ | PROT_WRITE); in test_seal_mprotect_merge()
906 ret = sys_mprotect(ptr, 2 * page_size, PROT_READ); in test_seal_mprotect_merge()
913 ret = sys_mprotect(ptr + 2 * page_size, 2 * page_size, PROT_READ); in test_seal_mprotect_merge()
961 ret = sys_mprotect(ptr, page_size * 2, PROT_READ | PROT_WRITE); in test_seal_munmap_two_vma()
1308 ret2 = mmap(ptr, size, PROT_READ, in test_seal_mmap_expand()
1336 ret2 = mmap(ptr, 8 * page_size, PROT_READ, in test_seal_mmap_shrink()
1677 ret = sys_mprotect_pkey((void *)ptr, size, PROT_READ | PROT_WRITE, pkey); in test_seal_discard_ro_anon_on_pkey()
1723 ptr = mmap(NULL, size, PROT_READ, mapflags, fd, 0); in test_seal_discard_ro_anon_on_filebacked()
1753 ptr = mmap(NULL, size, PROT_READ, mapflags, -1, 0); in test_seal_discard_ro_anon_on_shared()