PROT_EXEC 45 arch/c6x/include/asm/cacheflush.h if ((vma)->vm_flags & PROT_EXEC) \ PROT_EXEC 45 arch/powerpc/include/asm/mman.h if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO)) PROT_EXEC 344 arch/powerpc/mm/book3s64/pkeys.c if (vma_is_pkey_exec_only(vma) && (prot != PROT_EXEC)) PROT_EXEC 351 arch/powerpc/mm/book3s64/pkeys.c if (prot == PROT_EXEC) { PROT_EXEC 58 arch/sparc/include/asm/mman.h if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI)) PROT_EXEC 196 arch/um/os-Linux/mem.c PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); PROT_EXEC 145 arch/um/os-Linux/process.c (x ? PROT_EXEC : 0); PROT_EXEC 157 arch/um/os-Linux/process.c (x ? PROT_EXEC : 0)); PROT_EXEC 209 arch/um/os-Linux/skas/process.c PROT_EXEC, MAP_FIXED | MAP_PRIVATE, fd, offset); PROT_EXEC 272 arch/um/os-Linux/skas/process.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 22 arch/um/os-Linux/util.c PROT_READ | PROT_WRITE | PROT_EXEC) < 0) PROT_EXEC 207 arch/x86/ia32/ia32_aout.c PROT_READ | PROT_EXEC, PROT_EXEC 216 arch/x86/ia32/ia32_aout.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 299 arch/x86/ia32/ia32_aout.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 92 arch/x86/mm/pkeys.c if (prot == PROT_EXEC) { PROT_EXEC 96 arch/x86/um/user-offsets.c DEFINE(UM_PROT_EXEC, PROT_EXEC); PROT_EXEC 566 drivers/gpu/drm/amd/amdkfd/kfd_process.c KFD_CWSR_TBA_TMA_SIZE, PROT_READ | PROT_EXEC, PROT_EXEC 157 drivers/misc/lkdtm/perms.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 178 drivers/misc/lkdtm/perms.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 70 drivers/misc/lkdtm/usercopy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 138 drivers/misc/lkdtm/usercopy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 212 drivers/misc/lkdtm/usercopy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 300 drivers/misc/lkdtm/usercopy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 138 drivers/staging/android/ashmem.c #define PROT_MASK (PROT_EXEC | PROT_READ | PROT_WRITE) PROT_EXEC 351 drivers/staging/android/ashmem.c _calc_vm_trans(prot, PROT_EXEC, VM_MAYEXEC); PROT_EXEC 541 drivers/staging/android/ashmem.c prot |= PROT_EXEC; PROT_EXEC 225 fs/binfmt_aout.c PROT_READ | PROT_EXEC, PROT_EXEC 233 fs/binfmt_aout.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 312 fs/binfmt_aout.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 113 fs/binfmt_elf.c prot & PROT_EXEC ? VM_EXEC : 0); PROT_EXEC 537 fs/binfmt_elf.c prot |= PROT_EXEC; PROT_EXEC 658 fs/binfmt_elf.c bss_prot & PROT_EXEC ? VM_EXEC : 0); PROT_EXEC 1134 fs/binfmt_elf.c error = vm_mmap(NULL, 0, PAGE_SIZE, PROT_READ | PROT_EXEC, PROT_EXEC 1230 fs/binfmt_elf.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 419 fs/binfmt_elf_fdpic.c stack_prot |= PROT_EXEC; PROT_EXEC 947 fs/binfmt_elf_fdpic.c PROT_READ | PROT_WRITE | PROT_EXEC, mflags, 0); PROT_EXEC 1037 fs/binfmt_elf_fdpic.c if (phdr->p_flags & PF_X) prot |= PROT_EXEC; PROT_EXEC 564 fs/binfmt_flat.c textpos = vm_mmap(bprm->file, 0, text_len, PROT_READ|PROT_EXEC, PROT_EXEC 577 fs/binfmt_flat.c PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 0); PROT_EXEC 621 fs/binfmt_flat.c PROT_READ | PROT_EXEC | PROT_WRITE, MAP_PRIVATE, 0); PROT_EXEC 97 include/linux/mman.h return (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM)) == 0; PROT_EXEC 121 include/linux/mman.h _calc_vm_trans(prot, PROT_EXEC, VM_EXEC) | PROT_EXEC 1471 ipc/shm.c prot |= PROT_EXEC; PROT_EXEC 7458 kernel/events/core.c prot |= PROT_EXEC; PROT_EXEC 487 lib/test_kasan.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 199 lib/test_user_copy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 1411 mm/mmap.c prot |= PROT_EXEC; PROT_EXEC 1447 mm/mmap.c if (prot == PROT_EXEC) { PROT_EXEC 2951 mm/mmap.c prot |= vma->vm_flags & VM_EXEC ? PROT_EXEC : 0; PROT_EXEC 560 mm/mprotect.c prot |= PROT_EXEC; PROT_EXEC 891 mm/nommu.c ((prot & PROT_EXEC) && !(capabilities & NOMMU_MAP_EXEC)) PROT_EXEC 904 mm/nommu.c if (prot & PROT_EXEC) PROT_EXEC 906 mm/nommu.c } else if ((prot & PROT_READ) && !(prot & PROT_EXEC)) { PROT_EXEC 910 mm/nommu.c prot |= PROT_EXEC; PROT_EXEC 913 mm/nommu.c (prot & PROT_EXEC) && PROT_EXEC 928 mm/nommu.c prot |= PROT_EXEC; PROT_EXEC 497 security/apparmor/lsm.c if (prot & PROT_EXEC) PROT_EXEC 385 security/integrity/ima/ima_main.c if (file && (prot & PROT_EXEC)) { PROT_EXEC 1418 security/security.c if ((prot & (PROT_READ | PROT_EXEC)) != PROT_READ) PROT_EXEC 1426 security/security.c return prot | PROT_EXEC; PROT_EXEC 1439 security/security.c return prot | PROT_EXEC; PROT_EXEC 3659 security/selinux/hooks.c (prot & PROT_EXEC) && (!file || IS_PRIVATE(file_inode(file)) || PROT_EXEC 3681 security/selinux/hooks.c if (prot & PROT_EXEC) PROT_EXEC 3738 security/selinux/hooks.c (prot & PROT_EXEC) && !(vma->vm_flags & VM_EXEC)) { PROT_EXEC 738 tools/perf/builtin-report.c map->prot & PROT_EXEC ? 'x' : '-', PROT_EXEC 216 tools/perf/jvmti/jvmti_agent.c marker_addr = mmap(NULL, pgsz, PROT_READ|PROT_EXEC, MAP_PRIVATE, fd, 0); PROT_EXEC 39 tools/perf/tests/mmap-thread-lookup.c PROT_READ|PROT_WRITE|PROT_EXEC, PROT_EXEC 274 tools/perf/util/event.c (event->mmap2.prot & PROT_EXEC) ? 'x' : '-', PROT_EXEC 1726 tools/perf/util/machine.c prot = PROT_EXEC; PROT_EXEC 175 tools/perf/util/map.c if ((anon || no_dso) && nsi && (prot & PROT_EXEC)) { PROT_EXEC 215 tools/perf/util/map.c if (!(prot & PROT_EXEC)) PROT_EXEC 1278 tools/perf/util/sort.c map && !(map->prot & PROT_EXEC) && PROT_EXEC 1302 tools/perf/util/symbol.c err = file__read_maps(fd, map->prot & PROT_EXEC, kcore_mapfn, &md, PROT_EXEC 1394 tools/perf/util/symbol.c if (map->prot & PROT_EXEC) PROT_EXEC 365 tools/perf/util/synthetic-events.c event->mmap2.prot |= PROT_EXEC; PROT_EXEC 254 tools/testing/selftests/x86/entry_from_vm86.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_EXEC 1346 tools/testing/selftests/x86/protection_keys.c ret = mprotect_pkey(p1, PAGE_SIZE, PROT_EXEC, (u64)pkey); PROT_EXEC 1378 tools/testing/selftests/x86/protection_keys.c ret = mprotect(p1, PAGE_SIZE, PROT_EXEC); PROT_EXEC 1400 tools/testing/selftests/x86/protection_keys.c ret = mprotect(p1, PAGE_SIZE, PROT_READ|PROT_EXEC);