Home
last modified time | relevance | path

Searched refs:PROT_READ (Results 1 – 25 of 26) sorted by relevance

12

/arch/x86/um/os-Linux/
Dtask_size.c36 PROT_READ | PROT_WRITE, in page_ok()
54 PROT_READ | PROT_WRITE) != 0) in page_ok()
/arch/um/os-Linux/
Dprocess.c144 prot = (r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) | in os_map_memory()
156 int prot = ((r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) | in os_protect_memory()
202 addr = mmap64(NULL, UM_KERN_PAGE_SIZE, PROT_READ | PROT_WRITE, in can_drop_memory()
Dutil.c22 PROT_READ | PROT_WRITE | PROT_EXEC) < 0) in stack_protections()
Dmem.c196 PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); in check_tmpexec()
/arch/alpha/include/uapi/asm/
Dmman.h5 #define PROT_READ 0x1 /* page can be read */ macro
/arch/mips/include/uapi/asm/
Dmman.h19 #define PROT_READ 0x01 /* page can be read */ macro
/arch/xtensa/include/uapi/asm/
Dmman.h26 #define PROT_READ 0x1 /* page can be read */ macro
/arch/parisc/include/uapi/asm/
Dmman.h5 #define PROT_READ 0x1 /* page can be read */ macro
/arch/powerpc/include/asm/
Dmman.h41 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO)) in arch_validate_prot()
/arch/arm/vdso/
Dvdsomunge.c145 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main()
186 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
/arch/sparc/vdso/
Dvdso2c.c213 map_input(argv[1], &raw_addr, &raw_len, PROT_READ); in main()
214 map_input(argv[2], &stripped_addr, &stripped_len, PROT_READ); in main()
/arch/arm64/include/asm/
Dmman.h65 unsigned long supported = PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM; in arch_validate_prot()
/arch/x86/entry/vdso/
Dvdso2c.c237 map_input(argv[1], &raw_addr, &raw_len, PROT_READ); in main()
238 map_input(argv[2], &stripped_addr, &stripped_len, PROT_READ); in main()
/arch/x86/ia32/
Dia32_aout.c204 PROT_READ | PROT_EXEC, in load_aout_binary()
213 PROT_READ | PROT_WRITE | PROT_EXEC, in load_aout_binary()
295 PROT_READ | PROT_WRITE | PROT_EXEC, in load_aout_library()
/arch/x86/um/shared/sysdep/
Dstub_32.h86 "d" (PROT_READ | PROT_WRITE), in remap_stack()
Dstub_64.h92 "d" (PROT_READ | PROT_WRITE), in remap_stack()
/arch/sparc/include/asm/
Dmman.h58 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI)) in sparc_validate_prot()
/arch/x86/um/
Duser-offsets.c82 DEFINE(UM_PROT_READ, PROT_READ); in foo()
/arch/um/os-Linux/skas/
Dprocess.c220 UM_KERN_PAGE_SIZE, PROT_READ | PROT_WRITE, in userspace_tramp()
274 PROT_READ | PROT_WRITE | PROT_EXEC, in start_userspace()
/arch/mips/tools/
Dloongson3-llsc-check.c263 vmlinux = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, vmlinux_fd, 0); in main()
/arch/s390/mm/
Dgmap.c976 if (prot == PROT_READ && !pmd_p) { in gmap_protect_pmd()
1108 if (!MACHINE_HAS_ESOP && prot == PROT_READ) in gmap_mprotect_notify()
1162 rc = gmap_pte_op_fixup(gmap, gaddr, vmaddr, PROT_READ); in gmap_read_table()
1235 rc = ptep_force_prot(parent->mm, paddr, ptep, PROT_READ, in gmap_protect_rmap()
1245 rc = gmap_pte_op_fixup(parent, paddr, vmaddr, PROT_READ); in gmap_protect_rmap()
1703 PROT_READ, GMAP_NOTIFY_SHADOW); in gmap_shadow()
2118 prot = (pte_val(pte) & _PAGE_PROTECT) ? PROT_READ : PROT_WRITE; in gmap_shadow_page()
2446 gmap_protect_pmd(gmap, gaddr, pmdp, PROT_READ, 0); in gmap_test_and_clear_dirty_pmd()
Dpgtable.c637 if (prot == PROT_READ && !pte_p) { in ptep_force_prot()
/arch/mips/vdso/
Dgenvdso.c129 addr = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, in map_vdso()
/arch/arm64/kvm/hyp/nvhe/
Dgen-hyprel.c266 elf.begin = mmap(0, stat.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in init_elf()
/arch/x86/boot/tools/
Dbuild.c426 kernel = mmap(NULL, sz, PROT_READ, MAP_SHARED, fd, 0); in main()

12