Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 13 of 13) sorted by relevance

/bionic/libc/bionic/
Dmmap.cpp44 void* mmap64(void* addr, size_t size, int prot, int flags, int fd, off64_t offset) { in mmap64() argument
61 void* result = __mmap2(addr, size, prot, flags, fd, offset >> MMAP2_SHIFT); in mmap64()
75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap() argument
76 return mmap64(addr, size, prot, flags, fd, static_cast<off64_t>(offset)); in mmap()
Datexit.cpp159 const int prot = PROT_READ | (writable ? PROT_WRITE : 0); in set_writable() local
160 if (mprotect(reinterpret_cast<char*>(array_) + start_byte, byte_len, prot) != 0) { in set_writable()
/bionic/linker/
Dlinker_block_allocator.h51 void protect_all(int prot);
91 void protect_all(int prot) { block_allocator_.protect_all(prot); } in protect_all() argument
Dlinker_block_allocator.cpp111 void LinkerBlockAllocator::protect_all(int prot) { in protect_all() argument
113 if (mprotect(page, kAllocateSize, prot) == -1) { in protect_all()
114 async_safe_fatal("mprotect(%p, %zu, %d) failed: %m", page, kAllocateSize, prot); in protect_all()
Dlinker_phdr.cpp725 int prot = PFLAGS_TO_PROT(phdr->p_flags); in LoadSegments() local
726 if ((prot & (PROT_EXEC | PROT_WRITE)) == (PROT_EXEC | PROT_WRITE)) { in LoadSegments()
741 prot, in LoadSegments()
806 int prot = PFLAGS_TO_PROT(phdr->p_flags) | extra_prot_flags; in _phdr_table_set_load_prot() local
807 if ((prot & PROT_WRITE) != 0) { in _phdr_table_set_load_prot()
809 prot &= ~PROT_EXEC; in _phdr_table_set_load_prot()
812 if ((prot & PROT_EXEC) == 0) { in _phdr_table_set_load_prot()
815 prot &= ~PROT_BTI; in _phdr_table_set_load_prot()
820 mprotect(reinterpret_cast<void*>(seg_page_start), seg_page_end - seg_page_start, prot); in _phdr_table_set_load_prot()
845 int prot = 0; in phdr_table_protect_segments() local
[all …]
/bionic/libc/private/
DWriteProtected.h76 void set_protection(int prot) { in set_protection() argument
83 if (mprotect(reinterpret_cast<void*>(addr), PAGE_SIZE, prot) == -1) { in set_protection()
84 async_safe_fatal("WriteProtected mprotect %x failed: %s", prot, strerror(errno)); in set_protection()
/bionic/tests/
Dutils.h121 char prot[5]; // sizeof("rwxp") in parse_maps() local
123 &record.addr_start, &record.addr_end, prot, &record.offset, in parse_maps()
126 if (prot[0] == 'r') { in parse_maps()
129 if (prot[1] == 'w') { in parse_maps()
132 if (prot[2] == 'x') { in parse_maps()
Dbuffer_tests.cpp234 static int MprotectHeap(void* addr, size_t len, int prot) { in MprotectHeap() argument
235 return mprotect(untag_address(addr), len, prot); in MprotectHeap()
Dpthread_test.cpp2835 int prot = PROT_NONE; in TEST() local
2837 void* page = mmap(nullptr, kPageSize, prot, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST()
2840 prot = (prot == PROT_NONE) ? PROT_READ : PROT_NONE; in TEST()
/bionic/libc/
DSECCOMP_ALLOWLIST_APP.TXT43 int remap_file_pages(void *addr, size_t size, int prot, size_t pgoff, int flags) lp32
49 void* mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) x86
/bionic/libc/kernel/uapi/linux/
Dagpgart.h62 int prot; member
Dscif_ioctl.h45 __s32 prot; member
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dglob.c192 Char *bufnext, *bufend, patbuf[MAXPATHLEN], prot; in glob() local
239 prot = M_PROTECT; in glob()
241 prot = 0; in glob()
249 *bufnext++ = wc | prot; in glob()