Home
last modified time | relevance | path

Searched refs:PROT_NONE (Results 1 – 25 of 47) sorted by relevance

12

/freebsd/tools/test/stress2/misc/
H A Dmmap30.sh63 addr = mmap(NULL, pagesz, PROT_NONE, MAP_GUARD, -1, 0);
70 if (mprotect(addr, pagesz, PROT_NONE) == -1)
H A Dmprotect.sh56 if (mprotect(addr, len, PROT_NONE) != 0)
62 if (mprotect(addr, 4096, PROT_NONE) != 0) /* trigger demotion */
H A Dmmap16.sh127 addr = mmap(NULL, pagesz, PROT_NONE, MAP_GUARD, -1, 0);
133 addr = mmap(NULL, pagesz, PROT_NONE, MAP_ANON, -1, 0);
H A Dmmap13.sh77 if (mprotect(addr, sz, PROT_NONE) != 0)
H A Dmmap12.sh73 if (mprotect(addr, sz, PROT_NONE) != 0)
H A Dmprotect3.sh51 if (mprotect(guard, pagesize, PROT_NONE)) {
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/
H A Dguarded_pool_allocator_posix.cpp66 mmap(nullptr, Size, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in reserveGuardedPool()
95 mmap(Ptr, Size, PROT_NONE, MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE, -1, in deallocateInGuardedPool()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DInferiorCallPOSIX.cpp27 #define PROT_NONE 0 macro
66 prot_arg = PROT_NONE; in InferiorCallMmap()
/freebsd/lib/libc/tests/string/
H A Dstpncpy_test.c55 assert(mprotect(buf + alloc_size - page_size, page_size, PROT_NONE) == 0); in makebuf()
58 assert(mprotect(buf, page_size, PROT_NONE) == 0); in makebuf()
H A Dmemccpy_test.c57 assert(mprotect(buf + alloc_size - page_size, page_size, PROT_NONE) == 0); in makebuf()
60 assert(mprotect(buf, page_size, PROT_NONE) == 0); in makebuf()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mprotect.c114 int prot[2] = { PROT_NONE, PROT_READ }; in ATF_TC_BODY()
262 const int prot[4] = { PROT_NONE, PROT_READ, PROT_WRITE }; in ATF_TC_BODY()
H A Dt_mmap.c342 map = mmap(NULL, page, PROT_NONE, MAP_ANON|MAP_PRIVATE, -1, 0); in ATF_TC_BODY()
396 map = mmap(NULL, 3, PROT_NONE, MAP_FILE | MAP_SHARED, fd, 0); in ATF_TC_BODY()
H A Dt_mincore.c244 addr3 = mmap(NULL, npgs * page, PROT_NONE, MAP_ANON, -1, (off_t)0); in ATF_TC_BODY()
H A Dt_mlock.c298 buf = mmap(NULL, page, PROT_NONE, flags, -1, 0);
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dlinux.cpp57 MmapProt = PROT_NONE; in map()
93 int Prot = (Flags & MAP_NOACCESS) ? PROT_NONE : (PROT_READ | PROT_WRITE); in setMemoryPermission()
/freebsd/tests/sys/vm/stack/
H A Dstack_mprotect_exec_test.c46 ATF_REQUIRE(mprotect(guard, pagesize, PROT_NONE) == 0); in ATF_TC_BODY()
/freebsd/tests/sys/kern/
H A Dpdrfork.c111 unmapped = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_GUARD, -1, 0); in ATF_TC_BODY()
H A Dpdwait.c45 unmapped = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_GUARD, -1, 0); in unmapped()
/freebsd/tests/sys/vm/
H A Dpage_fault_signal.c111 p = mmap(NULL, sz, PROT_NONE, MAP_ANON, -1, 0); in ATF_TC_BODY()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix_libcdep.cpp451 return (void *)MmapNamed((void *)fixed_addr, size, PROT_NONE, in MmapFixedNoAccess()
458 return (void *)internal_mmap(nullptr, size, PROT_NONE, flags, -1, 0); in MmapNoAccess()
/freebsd/crypto/openssh/
H A Dsandbox-seccomp-filter.c202 SC_ALLOW_ARG_MASK(_nr, 2, PROT_READ|PROT_WRITE|PROT_NONE)
367 SC_ALLOW_ARG_MASK(__NR_mprotect, 2, PROT_READ|PROT_WRITE|PROT_NONE),
/freebsd/sys/sys/
H A Dmman.h51 #define PROT_NONE 0x00 /* no permissions */ macro
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dutils.c72 !(defined(PROT_NONE) && defined(PROT_READ) && defined(PROT_WRITE))
396 return mprotect(ptr, size, PROT_NONE); in _mprotect_noaccess()
/freebsd/contrib/llvm-project/compiler-rt/lib/safestack/
H A Dsafestack.cpp121 Mprotect(addr, guard, PROT_NONE); in unsafe_stack_alloc()
/freebsd/crypto/openssl/crypto/
H A Dmem_sec.c548 if (mprotect(sh.map_result, pgsize, PROT_NONE) < 0) in sh_init()
558 if (mprotect(sh.map_result + aligned, pgsize, PROT_NONE) < 0) in sh_init()

12