Gentoo Archives: gentoo-hardened

From: "Peter S. Mazinger" <ps.m@×××.net>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] RSBAC and paxtest and chpax
Date: Fri, 26 Aug 2005 09:04:57
Message-Id: Pine.LNX.4.44.0508261053130.24824-100000@lnx.bridge.intra
In Reply to: [gentoo-hardened] RSBAC and paxtest and chpax by Praise
1 On Wed, 24 Aug 2005, Praise wrote:
2
3 > Hi all!
4 >
5 > I have an RSBAC system and I have installed paxtest. The strange thing is that
6 > paxtest has sys-apps/chpax as dipendence, but this does not look needed: I
7 > have uninstalled chpax and paxtest gives me no problem at all.
8 > I should not use chpax anyway, as it is advised to use the rsbac tools with
9 > pax on an rsbac kernel.
10 > Should I open a bug report?
11
12 chpax is used to mark the binaries for old style kernel (EI_PAX), paxctl
13 for newer ones (PT_PAX). The files should have both markings, because we
14 can't know which options you enabled in the kernel, or if you are
15 intending to install your binary pkg on any other box (emerge -K)
16 paxtest includes an own version of chpax (depending on the version of
17 paxtest you used, that could be older than what is currently stable) and
18 if you don't have chpax installed on your dev-box, it will build and use
19 the internal one.
20
21 chpax should be an RDEPEND and DEPEND, so it can be used in pkg_install
22 and pkg_postinst for marking (pkg_postinst is needed because stripping
23 binaries could remove the EI_PAX marking of the executables)
24
25 Peter
26
27 --
28 Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
29 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
30
31 --
32 gentoo-hardened@g.o mailing list