git: kernel - Implement PIE (place independent executables)

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jun 19 16:35:24 PDT 2016


commit 9f95d10514c0dfee1f98d56be5235f780a848591
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Jun 19 16:31:25 2016 -0700

    kernel - Implement PIE (place independent executables)
    
    * Implement PIE placement and sysctl.  Currently disabled by default.
      If the sysctl kern.elf64.pie_base_mmap is set to 1, executable code
      will be mapped with a random shift.
    
    * Also support fixed addresses if requested in the ELF header.
    
    Submitted-by: shamaz
    Testing-by: shamaz, dillon, with help from marino

Summary of changes:
 sys/kern/imgact_elf.c | 49 +++++++++++++++++++++++++++++++++++++------------
 1 file changed, 37 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9f95d10514c0dfee1f98d56be5235f780a848591


-- 
DragonFly BSD source repository



More information about the Commits mailing list