Home
last modified time | relevance | path

Searched refs:PROT_READ (Results 1 – 25 of 29) sorted by relevance

12

/bionic/tests/
Dsys_mman_test.cpp27 void* map = mmap(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST()
33 void* map = mmap64(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST()
41 void* map = mmap(nullptr, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST()
48 void* map = mmap64(nullptr, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST()
62 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); in TEST()
113 void* map = mmap(nullptr, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize); in TEST()
121 map = mmap(nullptr, pagesize, PROT_READ, MAP_SHARED, tf.fd, 2 * pagesize); in TEST()
184 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, tempfile.fd, 0); in TEST()
202 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
240 char* base = reinterpret_cast<char*>(mmap(nullptr, PAGE_SIZE * 2, PROT_EXEC | PROT_READ, in TEST()
Dbuffer_tests.cpp376 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSingleBufferOverreadTest()
402 ASSERT_TRUE(MprotectHeap(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunSrcDstBufferOverreadTest()
456 ASSERT_TRUE(MprotectHeap(&memory1[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunCmpBufferOverreadTest()
457 ASSERT_TRUE(MprotectHeap(&memory2[pagesize], pagesize, PROT_READ | PROT_WRITE) == 0); in RunCmpBufferOverreadTest()
Dsys_prctl_test.cpp38 void* p = mmap(NULL, page_size * 3, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
Dandroid_unsafe_frame_pointer_chase_test.cpp136 mmap(nullptr, kStackSize * 2, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST()
Dutils.h131 record.perms |= PROT_READ; in parse_maps()
/bionic/libc/private/
DWriteProtected.h55 set_protection(PROT_READ); in initialize()
68 set_protection(PROT_READ | PROT_WRITE); in mutate()
70 set_protection(PROT_READ); in mutate()
/bionic/linker/
Dlinker_block_allocator_test.cpp131 allocator.protect_all(PROT_READ); in protect_all()
132 allocator.protect_all(PROT_READ | PROT_WRITE); in protect_all()
137 allocator.protect_all(PROT_READ); in protect_all()
Dlinker_cfi.cpp56 reinterpret_cast<char*>(mmap(nullptr, aligned_end - aligned_start, PROT_READ | PROT_WRITE, in ShadowWrite()
59 mprotect(aligned_start, aligned_end - aligned_start, PROT_READ); in ShadowWrite()
74 mprotect(tmp_start, size, PROT_READ); in ~ShadowWrite()
208 mprotect(shadow_start, PAGE_SIZE, PROT_READ); in NotifyLibDl()
Dlinker_mapped_file_fragment.cpp62 mmap64(nullptr, map_size, PROT_READ, MAP_PRIVATE, fd, page_min)); in Map()
Dlinker_phdr.cpp137 MAYBE_MAP_FLAG((x), PF_R, PROT_READ) | \
864 return _phdr_table_set_gnu_relro_prot(phdr_table, phdr_count, load_bias, PROT_READ); in phdr_table_protect_gnu_relro()
901 void* map = mmap(reinterpret_cast<void*>(seg_page_start), size, PROT_READ, in phdr_table_serialize_gnu_relro()
941 temp_mapping = mmap(nullptr, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in phdr_table_map_gnu_relro()
988 PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, *file_offset + match_offset); in phdr_table_map_gnu_relro()
Dlinker_block_allocator.cpp124 mmap(nullptr, kAllocateSize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)); in create_new_page()
/bionic/libc/malloc_debug/
DMapData.cpp64 flags |= PROT_READ; in parse_line()
71 if (!(flags & PROT_READ)) { in parse_line()
82 if (!(entry->flags & PROT_READ) || addr < entry->start || addr + sizeof(T) > entry->end) { in get_val()
199 if (prev_entry->flags == PROT_READ && prev_entry->offset < entry->offset && in find()
/bionic/libc/bionic/
Dpthread_create.cpp73 PROT_READ | PROT_WRITE, in __allocate_temp_bionic_tls()
89 …void* stack_base = mmap(nullptr, SIGNAL_STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOU… in __init_alternate_signal_stack()
130 mprotect(scs, SCS_SIZE, PROT_READ | PROT_WRITE); in __init_shadow_call_stack()
227 PROT_READ | PROT_WRITE) != 0) { in __allocate_thread_mapping()
Datexit.cpp162 const int prot = PROT_READ | (writable ? PROT_WRITE : 0); in set_writable()
174 new_pages = mmap(nullptr, new_capacity_bytes, PROT_READ | PROT_WRITE, in expand_capacity()
Dandroid_set_abort_message.cpp81 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_set_abort_message()
Dbionic_allocator.cpp195 void* const map_ptr = mmap(nullptr, PAGE_SIZE, PROT_READ | PROT_WRITE, in alloc_page()
276 void* map_ptr = mmap(nullptr, allocated_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, in alloc_mmap()
Dlibc_init_static.cpp127 mprotect(reinterpret_cast<void*>(seg_page_start), seg_page_end - seg_page_start, PROT_READ); in apply_gnu_relro()
Dgrp_pwd_file.cpp243 void* map_result = mmap(nullptr, mmap_size, PROT_READ, MAP_SHARED, fd.get(), 0); in DoMmap()
Dfdsan.cpp87 mmap(nullptr, aligned_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in at()
/bionic/libc/kernel/uapi/asm-generic/
Dmman-common.h21 #define PROT_READ 0x1 macro
/bionic/libc/upstream-openbsd/android/include/
Darc4random.h69 if ((p = mmap(NULL, sizeof(*p), PROT_READ|PROT_WRITE, in _rs_allocate()
/bionic/tests/headers/posix/
Dsys_mman_h.c36 MACRO(PROT_READ); in sys_mman_h()
/bionic/libc/system_properties/
Dcontexts_serialized.cpp48 void* const map_result = mmap(nullptr, context_nodes_mmap_size, PROT_READ | PROT_WRITE, in InitializeContextNodes()
Dprop_area.cpp95 void* const memory_area = mmap(nullptr, pa_size_, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in map_prop_area_rw()
122 void* const map_result = mmap(nullptr, pa_size_, PROT_READ, MAP_SHARED, fd, 0); in map_fd_ro()
/bionic/libc/stdio/
Dprintf_common.h541 PROT_WRITE | PROT_READ, in __find_arguments()
652 PROT_WRITE | PROT_READ, in __grow_type_table()
658 PROT_WRITE | PROT_READ, in __grow_type_table()

12