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/auxv.h
          +++ new/usr/src/uts/common/sys/auxv.h
↓ open down ↓ 183 lines elided ↑ open up ↑
 184  184   * Aux vectors available for brand modules.
 185  185   */
 186  186  #define AT_SUN_BRAND_AUX1       2020
 187  187  #define AT_SUN_BRAND_AUX2       2021
 188  188  #define AT_SUN_BRAND_AUX3       2022
 189  189  
 190  190  /*
 191  191   * Note that 2023 is reserved for the AT_SUN_HWCAP2 word defined above.
 192  192   */
 193  193  
      194 +#define AT_SUN_SECFLAGS         2024
      195 +
 194  196  /*
 195  197   * The kernel is in a better position to determine whether a process needs to
 196  198   * ignore dangerous LD environment variables.  If set, this flags tells
 197  199   * ld.so.1 to run "secure" and ignore the the environment.
 198  200   */
 199  201  #define AF_SUN_SETUGID          0x00000001
 200  202  
 201  203  /*
 202  204   * If set, this flag indicates that hardware capabilites can be verified
 203  205   * against the AT_SUN_HWCAP value.
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX