[hackers] [surf] Add PaX support. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Tue, 18 Aug 2015 18:22:06 +0200 (CEST)

commit 294142a806c9423ab47309c8871815e12e7c0107
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Tue Aug 18 18:21:34 2015 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Tue Aug 18 18:21:34 2015 +0200

    Add PaX support.
    
    Mprotect needs to be turned off for Webkit.

diff --git a/Makefile b/Makefile
index a9d4d1d..3b7c757 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -47,6 +47,7 @@ install: all
         _AT_mkdir -p ${DESTDIR}${PREFIX}/bin
         _AT_cp -f surf ${DESTDIR}${PREFIX}/bin
         _AT_chmod 755 ${DESTDIR}${PREFIX}/bin/surf
+ _AT_[ -e /sbin/paxctl ] && /sbin/paxctl -m ${DESTDIR}${PREFIX}/bin/surf
         _AT_echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
         _AT_mkdir -p ${DESTDIR}${MANPREFIX}/man1
         _AT_sed "s/VERSION/${VERSION}/g" < surf.1 > ${DESTDIR}${MANPREFIX}/man1/surf.1
Received on Tue Aug 18 2015 - 18:22:06 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 18 2015 - 18:24:16 CEST