Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-hardened
Navigation:
Lists: gentoo-hardened: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-hardened@g.o
From: Alex Efros <powerman@...>
Subject: Re: persistent paxctl -m?
Date: Thu, 9 Apr 2009 19:14:11 +0300
Hi!

On Thu, Apr 09, 2009 at 09:07:39AM -0700, Grant wrote:
> I seem to need to remember to paxctl -m the firefox binary whenever I
> upgrade firefox.  This inevitably leads to a browser crash and lost
> time/info.  Can I set up paxctl -m to persist, even if firefox is
> upgraded?

Put this into your /etc/portage/bashrc:
---cut---
if [ "x${EBUILD_PHASE}" != "x" ]; then
    if    [ -x "/etc/portage/bashrc.d/${CATEGORY}/${PF}.${EBUILD_PHASE}" ]; then
        source "/etc/portage/bashrc.d/${CATEGORY}/${PF}.${EBUILD_PHASE}"
    elif  [ -x "/etc/portage/bashrc.d/${CATEGORY}/${P}.${EBUILD_PHASE}"  ]; then
        source "/etc/portage/bashrc.d/${CATEGORY}/${P}.${EBUILD_PHASE}"
    elif  [ -x "/etc/portage/bashrc.d/${CATEGORY}/${PN}.${EBUILD_PHASE}" ]; then
        source "/etc/portage/bashrc.d/${CATEGORY}/${PN}.${EBUILD_PHASE}"
    fi
fi
---cut---

Next, create directory:
    mkdir -p /etc/portage/bashrc.d/www-client/

and create executable shell script in that dir: mozilla-firefox-bin.postinst
---cut---
#!/bin/bash
ewarn "Running chpax -m /opt/firefox/firefox-bin to avoid crash on flash!"
chpax -m /opt/firefox/firefox-bin
---cut---

-- 
			WBR, Alex.


Replies:
Re: persistent paxctl -m?
-- Alex Efros
References:
persistent paxctl -m?
-- Grant
Navigation:
Lists: gentoo-hardened: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: persistent paxctl -m?
Next by thread:
Re: persistent paxctl -m?
Previous by date:
Re: persistent paxctl -m?
Next by date:
Re: persistent paxctl -m?


Updated Jun 17, 2009

Summary: Archive of the gentoo-hardened mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.