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
@@ -1267,10 +1267,13 @@ if (ofl->ofl_oscapchain) cnt += 3; if (flags & FLG_OF_SYMBOLIC) cnt++; /* DT_SYMBOLIC */ + + if (ofl->ofl_aslr != 0) /* DT_SUNW_ASLR */ + cnt++; } /* * Account for Architecture dependent .dynamic entries, and defaults. */