Home
last modified time | relevance | path

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

12

/titanic_44/usr/src/uts/common/sys/
H A Dmman.h68 #define PROT_EXEC 0x4 /* pages can be executed */ macro
72 #define PROT_ZFOD (PROT_READ | PROT_WRITE | PROT_EXEC | PROT_USER)
73 #define PROT_ALL (PROT_READ | PROT_WRITE | PROT_EXEC | PROT_USER)
101 #define PROC_TEXT (PROT_EXEC | PROT_READ)
102 #define PROC_DATA (PROT_READ | PROT_WRITE | PROT_EXEC)
105 #define VALID_ATTR (PROT_READ|PROT_WRITE|PROT_EXEC|SHARED|PRIVATE)
/titanic_44/usr/src/lib/libc/i386/crt/
H A D_rtld.c139 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC, in __rtld()
197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld()
211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld()
272 i |= PROT_EXEC; in __rtld()
/titanic_44/usr/src/lib/libc/sparc/crt/
H A D_rtld.c138 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC, in __rtld()
197 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld()
211 maddr = (caddr_t)MMAP(0, mlen, PROT_READ | PROT_EXEC, in __rtld()
272 i |= PROT_EXEC; in __rtld()
/titanic_44/usr/src/uts/common/os/
H A Dgrow.c248 if (!(p->p_datprot & PROT_EXEC)) { in brk_internal()
249 crargs.prot &= ~PROT_EXEC; in brk_internal()
452 if (!(p->p_stkprot & PROT_EXEC)) { in grow_internal()
453 crargs.prot &= ~PROT_EXEC; in grow_internal()
607 if ((flags & MAP_TEXT) && !(prot & PROT_EXEC)) { in smmap_common()
676 maxprot &= ~PROT_EXEC; in smmap_common()
743 if ((prot & (PROT_READ | PROT_WRITE | PROT_EXEC)) && in smmap_common()
754 if (prot & (PROT_READ | PROT_EXEC)) { in smmap_common()
H A Dmain.c327 p->p_stkprot = PROT_ZFOD & ~PROT_EXEC; in start_init_common()
328 p->p_datprot = PROT_ZFOD & ~PROT_EXEC; in start_init_common()
H A Dmmapobj.c1038 if ((prot & (PROT_WRITE | PROT_EXEC)) == PROT_EXEC) { in mmapobj_map_ptload()
1790 prot |= PROT_EXEC; in process_phdr()
2059 int prot = PROT_USER | PROT_READ | PROT_EXEC; in doaoutwork()
2173 mrp[0].mr_prot = PROT_READ | PROT_EXEC; in doaoutwork()
2196 mrp[1].mr_prot = PROT_READ | PROT_WRITE | PROT_EXEC; in doaoutwork()
2241 mrp[2].mr_prot = PROT_READ | PROT_WRITE | PROT_EXEC; in doaoutwork()
2260 mrp[segnum].mr_prot = PROT_READ | PROT_EXEC; in doaoutwork()
H A Dwatchpoint.c113 return (PROT_EXEC); in rw_to_prot()
264 prot |= PROT_READ|PROT_EXEC; in pr_do_mappage()
288 prot |= PROT_READ|PROT_EXEC; in pr_do_mappage()
477 rv = ((prot & (PROT_USER|PROT_EXEC)) in pr_is_watchpage_as()
478 != (PROT_USER|PROT_EXEC)); in pr_is_watchpage_as()
H A Durw.c295 if (writing && (prot & PROT_EXEC)) in urw()
/titanic_44/usr/src/cmd/sgs/rtld.4.x/
H A Drtld.4.x.c382 ehdr = (Elf32_Ehdr *)mmap(0, sb.st_size, PROT_READ | PROT_EXEC,
443 maddr = (caddr_t)mmap(0, mlen, PROT_READ | PROT_EXEC,
457 maddr = (caddr_t)mmap(0, mlen, PROT_READ | PROT_EXEC,
509 i |= PROT_EXEC;
/titanic_44/usr/src/lib/libbc/inc/include/sys/
H A Dmman.h43 #define PROT_EXEC 0x4 /* pages can be executed */ macro
/titanic_44/usr/src/test/zfs-tests/tests/functional/exec/
H A Dmmap_exec.c65 PROT_EXEC, MAP_SHARED, fd, 0) == MAP_FAILED) { in main()
/titanic_44/usr/src/lib/libc/port/threads/
H A Dalloc.c116 PROT_READ | PROT_WRITE | PROT_EXEC, in initial_allocation()
193 int prot = PROT_READ | PROT_WRITE | PROT_EXEC; in lmalloc()
/titanic_44/usr/src/uts/common/exec/elf/
H A Delf.c335 args->stk_prot &= ~PROT_EXEC; in elfexec()
337 args->dat_prot &= ~PROT_EXEC; in elfexec()
384 args->stk_prot |= PROT_EXEC; in elfexec()
409 args->dat_prot |= PROT_EXEC; in elfexec()
1269 prot |= PROT_EXEC; in mapelfexec()
1531 if ((prot & (PROT_WRITE | PROT_EXEC)) != PROT_EXEC) in process_scns()
1929 prot &= PROT_READ | PROT_WRITE | PROT_EXEC; in elfcore()
1943 if (prot & PROT_EXEC) in elfcore()
1992 } else if (prot == (PROT_READ | PROT_EXEC)) { in elfcore()
/titanic_44/usr/src/cmd/mdb/common/mdb/
H A Dmdb_context.c73 prot = PROT_READ | PROT_WRITE | PROT_EXEC; in mdb_context_create()
/titanic_44/usr/src/lib/libumem/common/
H A Dvmem_mmap.c35 #define ALLOC_PROT PROT_READ | PROT_WRITE | PROT_EXEC
/titanic_44/usr/src/uts/i86pc/vm/
H A Dkboot_mmu.c312 *prot = PROT_READ | PROT_EXEC; in kbm_probe()
320 *prot &= ~PROT_EXEC; in kbm_probe()
/titanic_44/usr/src/cmd/sgs/rtld/common/
H A Dsetup.c424 mpp[0].mr_prot = (PROT_READ | PROT_EXEC); in setup()
429 mpp[1].mr_prot = (PROT_READ | PROT_WRITE | PROT_EXEC); in setup()
639 int perm = (PROT_READ | PROT_EXEC); in setup()
H A Dmalloc.c184 PROT_READ | PROT_WRITE | PROT_EXEC, in malloc()
H A Da.out.c758 mpp->mr_prot = (PROT_READ | PROT_EXEC); in aout_get_mmap()
764 mpp->mr_prot = (PROT_READ | PROT_WRITE | PROT_EXEC); in aout_get_mmap()
H A Dobject.c324 mpp[mnum].mr_prot = (PROT_READ | PROT_WRITE | PROT_EXEC); in elf_obj_fini()
/titanic_44/usr/src/uts/i86pc/os/
H A Dfastboot.c1209 PROT_READ | PROT_WRITE | PROT_EXEC, in fastboot_load_kernel()
1306 PROT_READ | PROT_WRITE | PROT_EXEC, in fastboot_xc_func()
1318 PROT_READ | PROT_WRITE | PROT_EXEC, in fastboot_xc_func()
1352 PROT_READ | PROT_WRITE | PROT_EXEC, in fast_reboot()
/titanic_44/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c50 { "PROT_EXEC", PROT_EXEC, PROT_EXEC },
/titanic_44/usr/src/uts/i86xpv/vm/
H A Dseg_mf.c291 return (PROT_EXEC); in seg_rw_to_prot()
296 return (PROT_READ | PROT_WRITE | PROT_EXEC); in seg_rw_to_prot()
/titanic_44/usr/src/uts/sun4v/sys/
H A Dpte.h188 (((attr) & PROT_EXEC) ? TTE_EXECPRM_INT : 0)
/titanic_44/usr/src/uts/common/fs/proc/
H A Dprsubr.c1657 if (prot & PROT_EXEC) in prgetmap()
1768 if (prot & PROT_EXEC) in prgetmap32()
1988 if (prot & PROT_EXEC) in prpdread()
2135 if (prot & PROT_EXEC) in prpdread32()
3444 prot &= ~(PROT_READ|PROT_WRITE|PROT_EXEC); in set_watched_page()
3448 prot &= ~(PROT_READ|PROT_WRITE|PROT_EXEC); in set_watched_page()
3526 ~(PROT_READ|PROT_WRITE|PROT_EXEC); in clear_watched_page()
3531 ~(PROT_READ|PROT_WRITE|PROT_EXEC); in clear_watched_page()
4064 if (prot & PROT_EXEC) in prgetxmap()
4248 if (prot & PROT_EXEC) in prgetxmap32()

12