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/link.h
          +++ new/usr/src/uts/common/sys/link.h
↓ open down ↓ 151 lines elided ↑ open up ↑
 152  152  #define DT_SUNW_TLSSORT         0x60000016      /* tls sym ndx sort by offset */
 153  153  #define DT_SUNW_TLSSORTSZ       0x60000017      /* size of SUNW_TLSSORT */
 154  154  #define DT_SUNW_CAPINFO         0x60000018      /* capabilities symbols */
 155  155  #define DT_SUNW_STRPAD          0x60000019      /* # of unused bytes at the */
 156  156                                                  /*      end of dynstr */
 157  157  #define DT_SUNW_CAPCHAIN        0x6000001a      /* capabilities chain info */
 158  158  #define DT_SUNW_LDMACH          0x6000001b      /* EM_ machine code of linker */
 159  159                                                  /*      that produced object */
 160  160  #define DT_SUNW_CAPCHAINENT     0x6000001d      /* capabilities chain entry */
 161  161  #define DT_SUNW_CAPCHAINSZ      0x6000001f      /* capabilities chain size */
      162 +/* 0x60000021 would be DT_SUNW_PARENT */
      163 +#define DT_SUNW_ASLR            0x60000023      /* executable ASLR desire */
 162  164  
 163  165  /*
 164  166   * DT_* encoding rules do not apply between DT_HIOS and DT_LOPROC
 165  167   */
 166  168  #define DT_HIOS                 0x6ffff000
 167  169  
 168  170  /*
 169  171   * The following values have been deprecated and remain here to allow
 170  172   * compatibility with older binaries.
 171  173   */
↓ open down ↓ 468 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX