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

@@ -2530,10 +2530,17 @@
                         dyn++;
                         dyn->d_tag = DT_SUNW_CAPCHAINENT;
                         dyn->d_un.d_val = shdr->sh_entsize;
                         dyn++;
                 }
+
+                if (ofl->ofl_aslr != 0) {
+                        dyn->d_tag = DT_SUNW_ASLR;
+                        dyn->d_un.d_val = (ofl->ofl_aslr == 1);
+                        dyn++;
+                }
+
                 if (flags & FLG_OF_SYMBOLIC) {
                         dyn->d_tag = DT_SYMBOLIC;
                         dyn->d_un.d_val = 0;
                         dyn++;
                 }