Print this page
Code review comments from jeffpc
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/man/man3lib/libproc.3lib
          +++ new/usr/src/man/man3lib/libproc.3lib
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  .\" You may only use this file in accordance with the terms of version
   5    5  .\" 1.0 of the CDDL.
   6    6  .\"
   7    7  .\" A full copy of the text of the CDDL should have accompanied this
   8    8  .\" source.  A copy of the CDDL is also available via the Internet at
   9    9  .\" http://www.illumos.org/license/CDDL.
  10   10  .\"
  11   11  .\"
  12   12  .\" Copyright 2015 Joyent, Inc.
  13   13  .\"
  14      -.Dd May 08, 2016
       14 +.Dd June 06, 2016
  15   15  .Dt LIBPROC 3LIB
  16   16  .Os
  17   17  .Sh NAME
  18   18  .Nm libproc
  19   19  .Nd process control library
  20   20  .Sh SYNOPSIS
  21   21  .Lb libproc
  22   22  .In libproc.h
  23   23  .Sh DESCRIPTION
  24   24  The
↓ open down ↓ 191 lines elided ↑ open up ↑
 216  216  .It Sy Plwp_getspymaster Ta Sy Plwp_main_stack
 217  217  .It Sy Plwp_setfpregs Ta Sy Plwp_setregs
 218  218  .It Sy Plwp_stack Ta Sy Pname_to_ctf
 219  219  .It Sy Pname_to_loadobj Ta Sy Pname_to_map
 220  220  .It Sy Pobjname Ta Sy Pobjname_resolved
 221  221  .It Sy Pplatform Ta Sy Ppltdest
 222  222  .It Sy Ppriv Ta Sy Ppsinfo
 223  223  .It Sy Pputareg Ta Sy Prd_agent
 224  224  .It Sy Pread Ta Sy Pread_string
 225  225  .It Sy Preset_maps Ta Sy Psetbkpt
 226      -.It Sy Psetcred Ta Sy Psetfault
 227      -.It Sy Psetflags Ta Sy Psetpriv
 228      -.It Sy Psetrun Ta Sy Psetsignal
 229      -.It Sy Psetsysentry Ta Sy Psetsysexit
 230      -.It Sy Psetwapt Ta Sy Psetzoneid
 231      -.It Sy Psignal Ta Sy Pstate
 232      -.It Sy Pstatus Ta Sy Pstop
 233      -.It Sy Pstopstatus Ta Sy Psync
 234      -.It Sy Psysentry Ta Sy Psysexit
 235      -.It Sy Puname Ta Sy Punsetflags
 236      -.It Sy Pupdate_maps Ta Sy Pupdate_syms
 237      -.It Sy Pwait Ta Sy Pwrite
 238      -.It Sy Pxecbkpt Ta Sy Pxecwapt
 239      -.It Sy Pxlookup_by_addr Ta Sy Pxlookup_by_addr_resolved
 240      -.It Sy Pxlookup_by_name Ta Sy Pzonename
 241      -.It Sy Pzonepath Ta Sy Pzoneroot
      226 +.It Sy Psecflags Ta Sy Psetcred
      227 +.It Sy Psetfault Ta Sy Psetflags
      228 +.It Sy Psetpriv Ta Sy Psetrun
      229 +.It Sy Psetsignal Ta Sy Psetsysentry
      230 +.It Sy Psetsysexit Ta Sy Psetwapt
      231 +.It Sy Psetzoneid Ta Sy Psignal
      232 +.It Sy Pstate Ta Sy Pstatus
      233 +.It Sy Pstop Ta Sy Pstopstatus
      234 +.It Sy Psync Ta Sy Psysentry
      235 +.It Sy Psysexit Ta Sy Puname
      236 +.It Sy Punsetflags Ta Sy Pupdate_maps
      237 +.It Sy Pupdate_syms Ta Sy Pwait
      238 +.It Sy Pwrite Ta Sy Pxecbkpt
      239 +.It Sy Pxecwapt Ta Sy Pxlookup_by_addr
      240 +.It Sy Pxlookup_by_addr_resolved Ta Sy Pxlookup_by_name
      241 +.It Sy Pzonename Ta Sy Pzonepath
      242 +.It Sy Pzoneroot Ta
 242  243  .El
 243  244  .Ss Thread interrogation and manipulation
 244  245  The following routines obtain information about a thread and allow
 245  246  manipulation of the thread itself.
 246  247  .Bl -column -offset indent ".Sy Pmapping_iter_resolved" ".Sy Psymbol_iter_by_addr"
 247  248  .It Sy Lalt_stack Ta Sy Lclearfault
 248  249  .It Sy Lclearsig Ta Sy Lctlfd
 249  250  .It Sy Ldstop Ta Sy Lgetareg
 250  251  .It Sy Lmain_stack Ta Sy Lprochandle
 251  252  .It Sy Lpsinfo Ta Sy Lputareg
↓ open down ↓ 796 lines elided ↑ open up ↑
1048 1049  .Xr Pobjname_resolved 3PROC ,
1049 1050  .Xr Pplatform 3PROC ,
1050 1051  .Xr Ppltdest 3PROC ,
1051 1052  .Xr Ppriv 3PROC ,
1052 1053  .Xr Ppsinfo 3PROC ,
1053 1054  .Xr Pputareg 3PROC ,
1054 1055  .Xr Prd_agent 3PROC ,
1055 1056  .Xr Pread 3PROC ,
1056 1057  .Xr Pread_string 3PROC ,
1057 1058  .Xr Preset_maps 3PROC ,
     1059 +.Xr Psecflags 3PROC ,
1058 1060  .Xr Psetbkpt 3PROC ,
1059 1061  .Xr Psetcred 3PROC ,
1060 1062  .Xr Psetfault 3PROC ,
1061 1063  .Xr Psetflags 3PROC ,
1062 1064  .Xr Psetpriv 3PROC ,
1063 1065  .Xr Psetrun 3PROC ,
1064 1066  .Xr Psetsignal 3PROC ,
1065 1067  .Xr Psetsysentry 3PROC ,
1066 1068  .Xr Psetsysexit 3PROC ,
1067 1069  .Xr Psetwapt 3PROC ,
↓ open down ↓ 145 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX