]> git.ipfire.org Git - thirdparty/glibc.git/commit - elf/Makefile
elf: Add elf/check-wx-segment, a test for the presence of WX segments
authorFlorian Weimer <fweimer@redhat.com>
Mon, 2 Mar 2020 13:24:27 +0000 (14:24 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 2 Mar 2020 13:25:20 +0000 (14:25 +0100)
commit0499a353a6e196f468e7ec554cb13c82011f0e36
tree581108932370bf01836d379db99bafc4330e3cf7
parentb5b7fb76e15c0db545aa11a3ce88f836e5d01a19
elf: Add elf/check-wx-segment, a test for the presence of WX segments

Writable, executable segments defeat security hardening.  The
existing check for DT_TEXTREL does not catch this.

hppa and SPARC currently keep the PLT in an RWX load segment.
elf/Makefile
scripts/check-wx-segment.py [new file with mode: 0644]
sysdeps/sparc/Makefile
sysdeps/unix/sysv/linux/hppa/Makefile