From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6360F13800E for ; Thu, 26 Jul 2012 16:29:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80985E07D0; Thu, 26 Jul 2012 16:29:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4A522E07D0 for ; Thu, 26 Jul 2012 16:29:33 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 796E41B40E2 for ; Thu, 26 Jul 2012 16:29:32 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2178) id 226D72004B; Thu, 26 Jul 2012 16:29:31 +0000 (UTC) From: "Ulrich Mueller (ulm)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, ulm@gentoo.org Subject: [gentoo-commits] gentoo commit in src/patchsets/emacs/23.4: 10_all_paxctl.patch X-VCS-Repository: gentoo X-VCS-Files: 10_all_paxctl.patch X-VCS-Directories: src/patchsets/emacs/23.4 X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Mueller Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20120726162931.226D72004B@flycatcher.gentoo.org> Date: Thu, 26 Jul 2012 16:29:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 98a91cca-99cf-423a-9670-d7e4b8cd85c0 X-Archives-Hash: 5074fdd23267b485b7774ae497ce6b44 ulm 12/07/26 16:29:31 Modified: 10_all_paxctl.patch Log: Run paxctl only if the toolchain supports PT_PAX_FLAGS, bug 426394. Revision Changes Path 1.2 src/patchsets/emacs/23.4/10_all_paxctl.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/emacs/23.4/10_all_paxctl.patch?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/emacs/23.4/10_all_paxctl.patch?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/emacs/23.4/10_all_paxctl.patch?r1=1.1&r2=1.2 Index: 10_all_paxctl.patch =================================================================== RCS file: /var/cvsroot/gentoo/src/patchsets/emacs/23.4/10_all_paxctl.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- 10_all_paxctl.patch 26 May 2012 15:05:12 -0000 1.1 +++ 10_all_paxctl.patch 26 Jul 2012 16:29:30 -0000 1.2 @@ -1,21 +1,29 @@ -https://bugs.gentoo.org/411439 -http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11398 - On grsecurity/PaX systems, unexec will fail due to a gap between the bss section and the heap. This can be prevented by disabling memory randomization in temacs with "paxctl -r". +https://bugs.gentoo.org/411439 +https://bugs.gentoo.org/426394 +http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11398 --- emacs-23.4-orig/configure.in +++ emacs-23.4/configure.in -@@ -800,6 +800,8 @@ - AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin) +@@ -801,6 +801,16 @@ dnl Don't use GZIP, which is used by gzip for additional parameters. AC_PATH_PROG(GZIP_PROG, gzip) -+AC_PATH_PROG(PAXCTL, paxctl,, -+ [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin]) ++if test $opsys = gnu-linux; then ++ AC_PATH_PROG(PAXCTL, paxctl,, ++ [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin]) ++ if test "X$PAXCTL" != X; then ++ AC_MSG_CHECKING([whether binaries have a PT_PAX_FLAGS header]) ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], ++ [if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then AC_MSG_RESULT(yes) ++ else AC_MSG_RESULT(no); PAXCTL=""; fi]) ++ fi ++fi ## Need makeinfo >= 4.6 (?) to build the manuals. + AC_PATH_PROG(MAKEINFO, makeinfo, no) --- emacs-23.4-orig/src/Makefile.in +++ emacs-23.4/src/Makefile.in @@ -508,6 +508,12 @@