/freebsd-12-stable/contrib/gcc/config/ |
H A D | netbsd.h | 189 we always issue the mprotect() call. 192 here. Unfortunately, there is no libc-internal name for mprotect(). 202 extern int mprotect (void *, size_t, int); \ 227 (void) mprotect (page, end - page, 7); \
|
H A D | sol2.h | 202 extern int mprotect(void *, size_t, int); \ 211 if (mprotect (page, end - page, 7 /* STACK_PROT_RWX */) < 0) \ 212 perror ("mprotect of trampoline code"); \
|
H A D | openbsd.h | 312 if (mprotect (page, end - page, PROT_READ | PROT_WRITE | PROT_EXEC) < 0) \ 313 perror ("mprotect of trampoline code"); \
|
/freebsd-12-stable/lib/libthr/thread/ |
H A D | thr_stack.c | 141 mprotect((char *)thrd->attr.stackaddr_attr + 163 mprotect((void *)(uintptr_t)(usrstack - rlim.rlim_cur), 180 mprotect((char *)st->stackaddr + st->guardsize, st->stacksize, 183 mprotect((char *)st->stackaddr + st->guardsize, st->stacksize, 280 mprotect(stackaddr, guardsize, PROT_NONE) == 0)) {
|
H A D | thr_rtld.c | 205 mprotect(NULL, 0, 0);
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/builtins/ |
H A D | enable_execute_stack.c | 65 (void)mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC);
|
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_subr.c | 49 (void) mprotect(buf, size, PROT_READ);
|
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mprotect.c | 72 rv = sysctlbyname("security.pax.mprotect.global", 78 rv = sysctlbyname("security.pax.mprotect.enabled", 90 rv = sysctlbyname("security.pax.mprotect.global", 96 rv = sysctlbyname("security.pax.mprotect.enabled", 109 atf_tc_set_md_var(tc, "descr", "Test for EACCES from mprotect(2)"); 135 ATF_REQUIRE(mprotect(map, page, PROT_WRITE) != 0); 151 atf_tc_set_md_var(tc, "descr", "Test error conditions of mprotect(2)"); 158 ATF_REQUIRE(mprotect((char *)-1, 1, PROT_READ) != 0); 167 "Test mprotect(2) executable space protections"); 216 ATF_REQUIRE(mprotect(ma [all...] |
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/safestack/ |
H A D | safestack_platform.h | 115 DEFINE__REAL(int, mprotect, void *a, size_t b, int c); 116 return _REAL(mprotect, addr, length, prot);
|
/freebsd-12-stable/contrib/gcc/config/sparc/ |
H A D | freebsd.h | 127 if (mprotect (addr, TRAMPOLINE_SIZE, 7) < 0) \ 128 perror ("mprotect of trampoline code"); \
|
/freebsd-12-stable/crypto/heimdal/lib/roken/ |
H A D | test-mem.c | 141 ret = mprotect ((void *)p, pagesize, 0); 143 err (1, "mprotect"); 145 ret = mprotect (p + map.size - pagesize, pagesize, 0); 147 err (1, "mprotect");
|
H A D | parse_reply-test.c | 114 ret = mprotect ((void *)p2, pagesize, 0); 116 err (1, "mprotect");
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/ |
H A D | guarded_pool_allocator_posix.cpp | 34 if (mprotect(Ptr, Size, PROT_READ | PROT_WRITE) != 0) { 37 Printf(" mprotect(%p, %zu, RW) failed.\n", Ptr, Size); 44 // we used mprotect() here the system would count pages in the quarantine
|
/freebsd-12-stable/lib/libc/gen/ |
H A D | elf_utils.c | 91 mprotect((void *)(uintptr_t)(usrstack - rlim.rlim_cur),
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_malloc_mac.inc | 68 mprotect(new_zone, allocated_size, PROT_READ); 77 // don't to unregister. Just un-mprotect and free() the zone. 81 mprotect(zone, allocated_size, PROT_READ | PROT_WRITE);
|
H A D | sanitizer_openbsd.cpp | 52 return mprotect(addr, length, prot);
|
H A D | sanitizer_solaris.cpp | 73 DECLARE__REAL_AND_INTERNAL(int, mprotect, void *addr, uptr length, int prot) { 74 return _REAL(mprotect)(addr, length, prot);
|
H A D | sanitizer_netbsd.cpp | 109 DEFINE__REAL(int, mprotect, void *a, uptr b, int c); 110 return _REAL(mprotect, addr, length, prot);
|
/freebsd-12-stable/contrib/binutils/bfd/ |
H A D | bfdwin.c | 96 mprotect (i->data, i->size, PROT_READ | PROT_WRITE); 248 mprotect (i->data, i->size, PROT_READ);
|
/freebsd-12-stable/sys/kern/ |
H A D | capabilities.conf | 428 mprotect
|
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/Unix/ |
H A D | Memory.inc | 193 int Result = ::mprotect((void *)Start, End - Start, Protect | PROT_READ); 202 int Result = ::mprotect((void *)Start, End - Start, Protect);
|
/freebsd-12-stable/sys/sys/ |
H A D | mman.h | 269 int mprotect(void *, size_t, int);
|
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_interface.cpp | 86 // MProtectHelper is an RAII wrapper for calls to mprotect(...) that will 87 // undo any successful mprotect(...) changes. This is used to make a page 123 auto R = mprotect(PageAlignedAddr, MProtectLen, 141 mprotect(PageAlignedAddr, MProtectLen, PROT_READ | PROT_EXEC); 260 // and try to get as few calls to mprotect(...) as possible. We're assuming 264 // now we're assuming we can mprotect the whole section of text between the 291 Report("Failed mprotect: %d\n", errno); 356 Report("Failed mprotect: %d\n", errno);
|
/freebsd-12-stable/crypto/heimdal/lib/asn1/ |
H A D | check-common.c | 111 ret = mprotect (p, pagesize, 0); 113 err (1, "mprotect"); 115 ret = mprotect (p + (*map)->size - pagesize, pagesize, 0); 117 err (1, "mprotect");
|
/freebsd-12-stable/sys/contrib/libsodium/src/libsodium/sodium/ |
H A D | utils.c | 396 return mprotect(ptr, size, PROT_NONE); 410 return mprotect(ptr, size, PROT_READ); 424 return mprotect(ptr, size, PROT_READ | PROT_WRITE);
|