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/cmd/sgs/dump/common/dump.c
          +++ new/usr/src/cmd/sgs/dump/common/dump.c
↓ open down ↓ 1217 lines elided ↑ open up ↑
1218 1218                          case DT_SYMINENT:
1219 1219                          case DT_VERNEEDNUM:
1220 1220                          case DT_SPARC_REGISTER:
1221 1221                          case DT_SUNW_SYMSZ:
1222 1222                          case DT_SUNW_SORTENT:
1223 1223                          case DT_SUNW_SYMSORTSZ:
1224 1224                          case DT_SUNW_TLSSORTSZ:
1225 1225                          case DT_SUNW_STRPAD:
1226 1226                          case DT_SUNW_CAPCHAINENT:
1227 1227                          case DT_SUNW_CAPCHAINSZ:
     1228 +                        case DT_SUNW_ASLR:
1228 1229                                  (void) printf(pdyn_Fmtptr,
1229 1230                                      EC_XWORD(p_dyn.d_un.d_val));
1230 1231                                  break;
1231 1232  
1232 1233                          /*
1233 1234                           * Integer items that are bitmasks, or which
1234 1235                           * can be otherwise formatted in symbolic form.
1235 1236                           */
1236 1237                          case DT_FLAGS:
1237 1238                          case DT_FEATURE_1:
↓ open down ↓ 893 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX