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


  34 
  35 #ifdef  __cplusplus
  36 extern "C" {
  37 #endif
  38 
  39 /*
  40  *      system call numbers
  41  *              syscall(SYS_xxxx, ...)
  42  */
  43 
  44         /* syscall enumeration MUST begin with 1 */
  45 
  46         /*
  47          * SunOS/SPARC uses 0 for the indirect system call SYS_syscall
  48          * but this doesn't count because it is just another way
  49          * to specify the real system call number.
  50          */
  51 
  52 #define SYS_syscall     0
  53 #define SYS_exit        1

  54 #define SYS_read        3
  55 #define SYS_write       4
  56 #define SYS_open        5
  57 #define SYS_close       6
  58 #define SYS_linkat      7
  59 #define SYS_link        9
  60 #define SYS_unlink      10
  61 #define SYS_symlinkat   11
  62 #define SYS_chdir       12
  63 #define SYS_time        13
  64 #define SYS_mknod       14
  65 #define SYS_chmod       15
  66 #define SYS_chown       16
  67 #define SYS_brk         17
  68 #define SYS_stat        18
  69 #define SYS_lseek       19
  70 #define SYS_getpid      20
  71 #define SYS_mount       21
  72 #define SYS_readlinkat  22
  73 #define SYS_setuid      23




  34 
  35 #ifdef  __cplusplus
  36 extern "C" {
  37 #endif
  38 
  39 /*
  40  *      system call numbers
  41  *              syscall(SYS_xxxx, ...)
  42  */
  43 
  44         /* syscall enumeration MUST begin with 1 */
  45 
  46         /*
  47          * SunOS/SPARC uses 0 for the indirect system call SYS_syscall
  48          * but this doesn't count because it is just another way
  49          * to specify the real system call number.
  50          */
  51 
  52 #define SYS_syscall     0
  53 #define SYS_exit        1
  54 #define SYS_psecflags   2
  55 #define SYS_read        3
  56 #define SYS_write       4
  57 #define SYS_open        5
  58 #define SYS_close       6
  59 #define SYS_linkat      7
  60 #define SYS_link        9
  61 #define SYS_unlink      10
  62 #define SYS_symlinkat   11
  63 #define SYS_chdir       12
  64 #define SYS_time        13
  65 #define SYS_mknod       14
  66 #define SYS_chmod       15
  67 #define SYS_chown       16
  68 #define SYS_brk         17
  69 #define SYS_stat        18
  70 #define SYS_lseek       19
  71 #define SYS_getpid      20
  72 #define SYS_mount       21
  73 #define SYS_readlinkat  22
  74 #define SYS_setuid      23