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/lib/libproc/common/Pidle.c
          +++ new/usr/src/lib/libproc/common/Pidle.c
↓ open down ↓ 104 lines elided ↑ open up ↑
 105  105  {
 106  106          errno = ENODATA;
 107  107          return (-1);
 108  108  }
 109  109  
 110  110  static const ps_ops_t P_idle_ops = {
 111  111          .pop_pread      = Pread_idle,
 112  112          .pop_pwrite     = Pwrite_idle,
 113  113          .pop_cred       = (pop_cred_t)Pidle_int,
 114  114          .pop_priv       = Ppriv_idle,
      115 +        .pop_secflags   = (pop_secflags_t)Pidle_int,
 115  116          .pop_psinfo     = (pop_psinfo_t)Pidle_voidp,
 116  117          .pop_platform   = (pop_platform_t)Pidle_voidp,
 117  118          .pop_uname      = (pop_uname_t)Pidle_int,
 118  119          .pop_zonename   = (pop_zonename_t)Pidle_voidp,
 119  120  #if defined(__i386) || defined(__amd64)
 120  121          .pop_ldt        = (pop_ldt_t)Pidle_int
 121  122  #endif
 122  123  };
 123  124  
 124  125  static int
↓ open down ↓ 204 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX