Home
last modified time | relevance | path

Searched refs:PROT_EXEC (Results 1 – 25 of 52) sorted by relevance

123

/external/autotest/client/site_tests/security_mprotect/
Dcontrol7 PURPOSE = "Verify mprotect+PROT_EXEC works on noexec filesystem"
8 CRITERIA = "Fails if PROT_EXEC cannot be mapped on noexec filesystem"
18 Checks that mprotect can use PROT_EXEC on noexec filesystems,
/external/strace/xlat/
Dmmap_prot.h20 #if defined(PROT_EXEC) || (defined(HAVE_DECL_PROT_EXEC) && HAVE_DECL_PROT_EXEC)
21 XLAT(PROT_EXEC),
Dmmap_prot.in4 PROT_EXEC
/external/valgrind/memcheck/tests/
Dmempool.c37 p = (pool *)mmap(0, sizeof(pool), PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool()
40 PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool()
59 PROT_READ|PROT_WRITE|PROT_EXEC, in push()
Dmempool2.c40 p = (pool *)mmap(0, sizeof(pool), PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool()
43 PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool()
62 PROT_READ|PROT_WRITE|PROT_EXEC, in push()
Dsigaltstack.c21 char *stk = (char *)mmap(0, size, PROT_READ|PROT_WRITE|PROT_EXEC, in main()
/external/autotest/client/site_tests/security_mprotect/src/
Dprot_exec.c43 PROT_READ | PROT_EXEC, MAP_SHARED, in main()
51 if (mprotect(areaex, sizeof(int), PROT_READ | PROT_EXEC)) in main()
/external/v8/src/base/platform/
Dplatform-openbsd.cc59 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
144 void* addr = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_PRIVATE, in SignalCodeMovingGC()
256 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
Dplatform-linux.cc136 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
228 PROT_READ | PROT_EXEC, in SignalCodeMovingGC()
354 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
Dplatform-solaris.cc57 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
178 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
Dplatform-freebsd.cc61 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Allocate()
225 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
Dplatform-macos.cc58 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in Allocate()
220 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
Dplatform-aix.cc67 int prot = PROT_READ | PROT_WRITE | (executable ? PROT_EXEC : 0); in Allocate()
223 int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); in CommitRegion()
/external/llvm/lib/Support/Unix/
DMemory.inc52 return PROT_READ | PROT_EXEC;
55 return PROT_READ | PROT_WRITE | PROT_EXEC;
65 return PROT_READ | PROT_EXEC;
67 return PROT_EXEC;
209 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_EXEC,
212 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC,
/external/libunwind/src/
Dos-linux.c81 && (flags & (PROT_EXEC | PROT_READ)) == (PROT_EXEC | PROT_READ) in map_create_list()
/external/valgrind/none/tests/
Dmunmap_exe.c14 m = mmap(NULL, 100, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in main()
/external/kernel-headers/original/uapi/asm-generic/
Dmman-common.h11 #define PROT_EXEC 0x4 /* page can be executed */ macro
/external/kernel-headers/original/uapi/asm-mips/asm/
Dmman.h20 #define PROT_EXEC 0x04 /* page can be executed */ macro
/external/compiler-rt/lib/builtins/
Denable_execute_stack.c70 (void) mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC); in __enable_execute_stack()
/external/valgrind/massif/tests/
Dcustom_alloc.c16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
/external/valgrind/drd/tests/
Dcustom_alloc.c16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
/external/mesa3d/src/mapi/mapi/
Du_execmem.c81 exec_mem = mmap(NULL, EXEC_MAP_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE, in init_map()
/external/valgrind/memcheck/tests/linux/
Dstack_changes.c37 stack = (void *)mmap(0, STACK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in init_context()
/external/mesa3d/src/mesa/main/
Dexecmem.c83 exec_mem = mmap(NULL, EXEC_HEAP_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE, in init_heap()
/external/valgrind/none/tests/amd64/
Dsmc1.c103 code = mmap(NULL, 20, PROT_READ|PROT_WRITE|PROT_EXEC, in main()

123