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/ptools/Makefile
          +++ new/usr/src/cmd/ptools/Makefile
↓ open down ↓ 46 lines elided ↑ open up ↑
  47   47          pwdx
  48   48  
  49   49  #
  50   50  # 'new' ptools are not symlinked into /usr/proc/bin
  51   51  #
  52   52  NEW_SUBDIRS =   \
  53   53          pargs   \
  54   54          plgrp   \
  55   55          pmadvise \
  56   56          ppriv   \
  57      -        preap
       57 +        preap   \
       58 +        psecflags
  58   59  
  59   60  SUBDIRS = $(LEGACY_SUBDIRS) $(NEW_SUBDIRS)
  60   61  
  61   62  all     :=      TARGET = all
  62   63  install :=      TARGET = install
  63   64  clean   :=      TARGET = clean
  64   65  clobber :=      TARGET = clobber
  65   66  lint    :=      TARGET = lint
  66   67  _msg    :=      TARGET = _msg
  67   68  
  68   69  
  69   70  # pmadvise depends on pmap components
  70   71  PMAP =                  $(SRC)/cmd/ptools/pmap
  71   72  pmadvise/pmadvise.po := CPPFLAGS +=     -I$(PMAP)
  72   73  
  73   74  #
  74   75  # Commands with messages support
  75   76  #
  76      -POFILES = plgrp/plgrp.po pmadvise/pmadvise.po
       77 +POFILES = plgrp/plgrp.po pmadvise/pmadvise.po psecflags/psecflags.po
  77   78  POFILE = ptools.po
  78   79  
  79   80  .KEEP_STATE:
  80   81  
  81   82  .PARALLEL: $(SUBDIRS)
  82   83  
  83   84  all install clean lint: $(SUBDIRS)
  84   85  clobber: $(SUBDIRS) clobber_local
  85   86  clobber_local:
  86   87          $(RM) $(CLOBBERFILES)
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX