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


  28 
  29 OBJS = $(PROG).o
  30 
  31 SRCS = ../$(PROG).c
  32 
  33 FILEMODE = 0555
  34 
  35 # libproc is added individually as pwait doesn't need it.
  36 # These are defined this way so lint can use them
  37 LDLIBS_pargs    = -lproc
  38 LDLIBS_pcred    = -lproc
  39 LDLIBS_pfiles   = -lproc -lnsl
  40 LDLIBS_pflags   = -lproc
  41 LDLIBS_pldd     = -lproc
  42 LDLIBS_plgrp    = -lproc -llgrp
  43 LDLIBS_pmap     = -lproc
  44 LDLIBS_pmadvise = -lproc
  45 LDLIBS_ppriv    = -lproc
  46 LDLIBS_preap    = -lproc
  47 LDLIBS_prun     = -lproc

  48 LDLIBS_psig     = -lproc
  49 LDLIBS_pstack   = -lproc -lc_db
  50 LDLIBS_pstop    = -lproc
  51 LDLIBS_ptime    = -lproc
  52 LDLIBS_ptree    = -lproc -lcontract
  53 LDLIBS_pwdx     = -lproc
  54 
  55 LDLIBS += $(LDLIBS_$(PROG))
  56 
  57 CERRWARN_plgrp  += -_gcc=-Wno-parentheses
  58 
  59 CERRWARN_ppriv  += -_gcc=-Wno-parentheses
  60 CERRWARN_ppriv  += -_gcc=-Wno-uninitialized
  61 
  62 CERRWARN_ptree  += -_gcc=-Wno-parentheses
  63 
  64 CERRWARN_pstack += -_gcc=-Wno-uninitialized
  65 CERRWARN_pstack += -_gcc=-Wno-clobbered
  66 
  67 CERRWARN_pargs  += -_gcc=-Wno-clobbered




  28 
  29 OBJS = $(PROG).o
  30 
  31 SRCS = ../$(PROG).c
  32 
  33 FILEMODE = 0555
  34 
  35 # libproc is added individually as pwait doesn't need it.
  36 # These are defined this way so lint can use them
  37 LDLIBS_pargs            = -lproc
  38 LDLIBS_pcred            = -lproc
  39 LDLIBS_pfiles           = -lproc -lnsl
  40 LDLIBS_pflags           = -lproc
  41 LDLIBS_pldd             = -lproc
  42 LDLIBS_plgrp            = -lproc -llgrp
  43 LDLIBS_pmap             = -lproc
  44 LDLIBS_pmadvise         = -lproc
  45 LDLIBS_ppriv            = -lproc
  46 LDLIBS_preap            = -lproc
  47 LDLIBS_prun             = -lproc
  48 LDLIBS_psecflags        = -lproc -lproject
  49 LDLIBS_psig             = -lproc
  50 LDLIBS_pstack           = -lproc -lc_db
  51 LDLIBS_pstop            = -lproc
  52 LDLIBS_ptime            = -lproc
  53 LDLIBS_ptree            = -lproc -lcontract
  54 LDLIBS_pwdx             = -lproc
  55 
  56 LDLIBS += $(LDLIBS_$(PROG))
  57 
  58 CERRWARN_plgrp  += -_gcc=-Wno-parentheses
  59 
  60 CERRWARN_ppriv  += -_gcc=-Wno-parentheses
  61 CERRWARN_ppriv  += -_gcc=-Wno-uninitialized
  62 
  63 CERRWARN_ptree  += -_gcc=-Wno-parentheses
  64 
  65 CERRWARN_pstack += -_gcc=-Wno-uninitialized
  66 CERRWARN_pstack += -_gcc=-Wno-clobbered
  67 
  68 CERRWARN_pargs  += -_gcc=-Wno-clobbered