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.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/elfdump/common/gen_layout_obj.c
          +++ new/usr/src/cmd/sgs/elfdump/common/gen_layout_obj.c
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20  
  21   21  #include <sys/types.h>
  22   22  #include <sys/stat.h>
  23   23  #include <sys/sysmacros.h>
  24   24  #include <sys/corectl.h>
  25   25  #define _STRUCTURED_PROC        1
  26   26  #include <sys/procfs.h>
  27   27  #include <sys/auxv.h>
  28   28  #include <sys/old_procfs.h>
  29   29  #include <sys/utsname.h>
       30 +#include <sys/secflags.h>
  30   31  
  31   32  /* prgregset_t is a define on intel */
  32   33  #ifdef prgregset_t
  33   34  typedef prgregset_t
  34   35  #undef prgregset_t
  35   36      prgregset_t;
  36   37  #endif
  37   38  
  38   39  /* instantiate the types for CTF */
  39   40  auxv_t auxv;
↓ open down ↓ 9 lines elided ↑ open up ↑
  49   50  priv_impl_info_t priv_impl;
  50   51  fltset_t fltset;
  51   52  siginfo_t siginfo;
  52   53  sigset_t sigset;
  53   54  struct sigaction sigact;
  54   55  stack_t stack;
  55   56  sysset_t sysset;
  56   57  timestruc_t ts;
  57   58  struct utsname uts;
  58   59  prfdinfo_t ptfd;
       60 +prsecflags_t psf;
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX