Print this page
7029 want per-process exploit mitigation features (secflags)
7030 want basic address space layout randomization (aslr)
7031 noexec_user_stack should be a secflag
7032 want a means to forbid mappings around NULL.


 803 #define NT_PRFPREG      2       /* prfpregset_t <sys/old_procfs.h>        */
 804 #define NT_PRPSINFO     3       /* prpsinfo_t   <sys/old_procfs.h>        */
 805 #define NT_PRXREG       4       /* prxregset_t  <sys/procfs.h>            */
 806 #define NT_PLATFORM     5       /* string from sysinfo(SI_PLATFORM)     */
 807 #define NT_AUXV         6       /* auxv_t array <sys/auxv.h>              */
 808 #define NT_GWINDOWS     7       /* gwindows_t   SPARC only              */
 809 #define NT_ASRS         8       /* asrset_t     SPARC V9 only           */
 810 #define NT_LDT          9       /* ssd array    <sys/sysi86.h> IA32 only */
 811 #define NT_PSTATUS      10      /* pstatus_t    <sys/procfs.h>            */
 812 #define NT_PSINFO       13      /* psinfo_t     <sys/procfs.h>            */
 813 #define NT_PRCRED       14      /* prcred_t     <sys/procfs.h>            */
 814 #define NT_UTSNAME      15      /* struct utsname <sys/utsname.h> */
 815 #define NT_LWPSTATUS    16      /* lwpstatus_t  <sys/procfs.h>            */
 816 #define NT_LWPSINFO     17      /* lwpsinfo_t   <sys/procfs.h>            */
 817 #define NT_PRPRIV       18      /* prpriv_t     <sys/procfs.h>            */
 818 #define NT_PRPRIVINFO   19      /* priv_impl_info_t <sys/priv.h>  */
 819 #define NT_CONTENT      20      /* core_content_t <sys/corectl.h> */
 820 #define NT_ZONENAME     21      /* string from getzonenamebyid(3C)      */
 821 #define NT_FDINFO       22      /* open fd info                         */
 822 #define NT_SPYMASTER    23      /* psinfo_t for agent LWP spymaster     */
 823 #define NT_NUM          23

 824 
 825 
 826 #ifdef _KERNEL
 827 /*
 828  * The following routine checks the processor-specific
 829  * fields of an ELF header.
 830  */
 831 int     elfheadcheck(unsigned char, Elf32_Half, Elf32_Word);
 832 #endif
 833 
 834 #ifdef  __cplusplus
 835 }
 836 #endif
 837 
 838 #if defined(ELF_TARGET_ALL) || defined(ELF_TARGET_SPARC)
 839 #include <sys/elf_SPARC.h>
 840 #endif
 841 
 842 #if defined(ELF_TARGET_ALL) || defined(ELF_TARGET_386)
 843 #include <sys/elf_386.h>


 803 #define NT_PRFPREG      2       /* prfpregset_t <sys/old_procfs.h>        */
 804 #define NT_PRPSINFO     3       /* prpsinfo_t   <sys/old_procfs.h>        */
 805 #define NT_PRXREG       4       /* prxregset_t  <sys/procfs.h>            */
 806 #define NT_PLATFORM     5       /* string from sysinfo(SI_PLATFORM)     */
 807 #define NT_AUXV         6       /* auxv_t array <sys/auxv.h>              */
 808 #define NT_GWINDOWS     7       /* gwindows_t   SPARC only              */
 809 #define NT_ASRS         8       /* asrset_t     SPARC V9 only           */
 810 #define NT_LDT          9       /* ssd array    <sys/sysi86.h> IA32 only */
 811 #define NT_PSTATUS      10      /* pstatus_t    <sys/procfs.h>            */
 812 #define NT_PSINFO       13      /* psinfo_t     <sys/procfs.h>            */
 813 #define NT_PRCRED       14      /* prcred_t     <sys/procfs.h>            */
 814 #define NT_UTSNAME      15      /* struct utsname <sys/utsname.h> */
 815 #define NT_LWPSTATUS    16      /* lwpstatus_t  <sys/procfs.h>            */
 816 #define NT_LWPSINFO     17      /* lwpsinfo_t   <sys/procfs.h>            */
 817 #define NT_PRPRIV       18      /* prpriv_t     <sys/procfs.h>            */
 818 #define NT_PRPRIVINFO   19      /* priv_impl_info_t <sys/priv.h>  */
 819 #define NT_CONTENT      20      /* core_content_t <sys/corectl.h> */
 820 #define NT_ZONENAME     21      /* string from getzonenamebyid(3C)      */
 821 #define NT_FDINFO       22      /* open fd info                         */
 822 #define NT_SPYMASTER    23      /* psinfo_t for agent LWP spymaster     */
 823 #define NT_SECFLAGS     24      /* process security-flags */
 824 #define NT_NUM          24
 825 
 826 
 827 #ifdef _KERNEL
 828 /*
 829  * The following routine checks the processor-specific
 830  * fields of an ELF header.
 831  */
 832 int     elfheadcheck(unsigned char, Elf32_Half, Elf32_Word);
 833 #endif
 834 
 835 #ifdef  __cplusplus
 836 }
 837 #endif
 838 
 839 #if defined(ELF_TARGET_ALL) || defined(ELF_TARGET_SPARC)
 840 #include <sys/elf_SPARC.h>
 841 #endif
 842 
 843 #if defined(ELF_TARGET_ALL) || defined(ELF_TARGET_386)
 844 #include <sys/elf_386.h>