From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LfizI-00082I-Ob for garchives@archives.gentoo.org; Fri, 06 Mar 2009 22:57:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B500BE031D; Fri, 6 Mar 2009 22:57:51 +0000 (UTC) Received: from powerman.name (powerman.name [85.90.198.1]) by pigeon.gentoo.org (Postfix) with ESMTP id 1CA93E031D for ; Fri, 6 Mar 2009 22:57:50 +0000 (UTC) Received: (qmail 3781 invoked by uid 1000); 6 Mar 2009 22:57:47 -0000 Date: Sat, 7 Mar 2009 00:57:47 +0200 From: Alex Efros To: gentoo-hardened@lists.gentoo.org Subject: Re: [gentoo-hardened] 2.6.27-hardened-r8: assassination Message-ID: <20090306225746.GA2278@home.power> Mail-Followup-To: gentoo-hardened@lists.gentoo.org References: <20090306215141.GA3005@home.power> <49B19FEB.13855.19525701@pageexec.freemail.hu> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-hardened@lists.gentoo.org Reply-to: gentoo-hardened@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49B19FEB.13855.19525701@pageexec.freemail.hu> Organization: http://powerman.name/ User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 1df4cdb8-45d1-4aa1-9bb6-ce4ebcf45e79 X-Archives-Hash: 61d5a80966be6b6e26147443cb01e2ee Hi! On Fri, Mar 06, 2009 at 11:12:59PM +0200, pageexec@freemail.hu wrote: > ah crap, i know what it is. it's a several years old glibc bug where someone > put a certain variable into the RELRO segment but forgot that it'll be written > to later when a library with RWE GNU_STACK is loaded. the workaround is > to find that library (just extract them from strace, probably it'll be > pari's library) and run execstack -c on it. I don't have execstack command. Looks like it belong to prelink package, but http://www.gentoo.org/doc/en/prelink-howto.xml states it's incompatible with hardened. Because of this I decide to compile it manually, just to get execstack command: # emerge -f prelink # cd /usr/src # tar xjvf /usr/portage-distfiles/prelink-20071009.tar.bz2 # cd prelink # ./configure && make Now I tried your workaround: # /usr/src/prelink/src/execstack -c /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Math/Pari/Pari.so # /usr/src/prelink/src/execstack -c /usr/local/ioncube/ioncube_loader_lin_5.2.so # /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/ZendExtensionManager.so # /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/ZendExtensionManager_TS.so # /usr/src/prelink/src/execstack -c /usr/local/Zend/lib/Optimizer-3.3.0/php-5.2.x/ZendOptimizer.so and it works!! Is this issue will be fixed in next stable hardened-sources? -- WBR, Alex.