Print this page
uts: Allow for address space randomisation.
Randomise the base addresses of shared objects, non-fixed mappings, the
stack and the heap.  Introduce a service, svc:/system/process-security,
and a tool psecflags(1) to control and observe it

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/syscall.h
          +++ new/usr/src/uts/common/sys/syscall.h
↓ open down ↓ 43 lines elided ↑ open up ↑
  44   44          /* syscall enumeration MUST begin with 1 */
  45   45  
  46   46          /*
  47   47           * SunOS/SPARC uses 0 for the indirect system call SYS_syscall
  48   48           * but this doesn't count because it is just another way
  49   49           * to specify the real system call number.
  50   50           */
  51   51  
  52   52  #define SYS_syscall     0
  53   53  #define SYS_exit        1
       54 +#define SYS_psecflags   2
  54   55  #define SYS_read        3
  55   56  #define SYS_write       4
  56   57  #define SYS_open        5
  57   58  #define SYS_close       6
  58   59  #define SYS_linkat      7
  59   60  #define SYS_link        9
  60   61  #define SYS_unlink      10
  61   62  #define SYS_symlinkat   11
  62   63  #define SYS_chdir       12
  63   64  #define SYS_time        13
↓ open down ↓ 463 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX