Searched refs:mprotect (Results 1 - 25 of 44) sorted by relevance

12

/freebsd-12-stable/contrib/gcc/config/
H A Dnetbsd.h189 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 Dsol2.h202 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 Dopenbsd.h312 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 Dthr_stack.c141 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 Dthr_rtld.c205 mprotect(NULL, 0, 0);
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/builtins/
H A Denable_execute_stack.c65 (void)mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC);
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_subr.c49 (void) mprotect(buf, size, PROT_READ);
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mprotect.c72 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 Dsafestack_platform.h115 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 Dfreebsd.h127 if (mprotect (addr, TRAMPOLINE_SIZE, 7) < 0) \
128 perror ("mprotect of trampoline code"); \
/freebsd-12-stable/crypto/heimdal/lib/roken/
H A Dtest-mem.c141 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 Dparse_reply-test.c114 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 Dguarded_pool_allocator_posix.cpp34 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 Delf_utils.c91 mprotect((void *)(uintptr_t)(usrstack - rlim.rlim_cur),
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_malloc_mac.inc68 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 Dsanitizer_openbsd.cpp52 return mprotect(addr, length, prot);
H A Dsanitizer_solaris.cpp73 DECLARE__REAL_AND_INTERNAL(int, mprotect, void *addr, uptr length, int prot) {
74 return _REAL(mprotect)(addr, length, prot);
H A Dsanitizer_netbsd.cpp109 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 Dbfdwin.c96 mprotect (i->data, i->size, PROT_READ | PROT_WRITE);
248 mprotect (i->data, i->size, PROT_READ);
/freebsd-12-stable/sys/kern/
H A Dcapabilities.conf428 mprotect
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DMemory.inc193 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 Dmman.h269 int mprotect(void *, size_t, int);
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_interface.cpp86 // 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 Dcheck-common.c111 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 Dutils.c396 return mprotect(ptr, size, PROT_NONE);
410 return mprotect(ptr, size, PROT_READ);
424 return mprotect(ptr, size, PROT_READ | PROT_WRITE);

Completed in 233 milliseconds

12