Gentoo Archives: gentoo-hardened

From: Chris PeBenito <pebenito@g.o>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] SELinux Targeted strangeness
Date: Tue, 31 Jul 2007 15:17:21
Message-Id: 1185894825.5062.33.camel@defiant.pebenito.net
In Reply to: Re: [gentoo-hardened] SELinux Targeted strangeness by Ronan Mullally
1 On Tue, 2007-07-31 at 15:30 +0100, Ronan Mullally wrote:
2 > Hi Chris,
3 >
4 > On Tue, 31 Jul 2007, Chris PeBenito wrote:
5 >
6 > > This is a policy bug in base-policy. You can hotfix your policy by
7 > > making a local policy module [1] that has:
8 >
9 > That did the trick - thanks for your speedy response!
10 >
11 > On to the next question ;-|
12 >
13 > I'm unable to rebuild glibc using the selinux/2007.0/amd64/hardened
14 > profile. It works fine with a non-selinux amd64/hardened profile, and all
15 > I can find on google is suggestions that I've not got g++ installed (I
16 > have).
17 >
18 > The emerge fails at:
19 >
20 > * Building multilib glibc for ABIs: x86 amd64
21 [...]
22 > checking how to run the C preprocessor... /lib/cpp
23 > configure: error: C preprocessor "/lib/cpp" fails sanity check
24 > See `config.log' for more details.
25 >
26 > !!! ERROR: sys-libs/glibc-2.5-r4 failed.
27 > Call stack:
28 > ebuild.sh, line 1614: Called dyn_compile
29 > ebuild.sh, line 971: Called qa_call 'src_compile'
30 > environment, line 4203: Called src_compile
31 > glibc-2.5-r4.ebuild, line 1160: Called src_compile
32 > glibc-2.5-r4.ebuild, line 1171: Called toolchain-glibc_src_compile
33 > glibc-2.5-r4.ebuild, line 270: Called glibc_do_configure 'nptl'
34 > glibc-2.5-r4.ebuild, line 944: Called die
35 >
36 > The mention of --without-selinux, multilib and /usr/lib32 strikes me as
37 > incorrect - I'm using an selinux policy and I'm not using multilib - this
38 > is a pure amd64/em64t build.
39
40 The SELinux profiles are multilib, which I'm guessing is where the
41 problem comes from, since you're saying your machine is converted from
42 non-multilib. The SELinux code is disabled for 32 bit because the
43 SELinux part of glibc is nscd, which only needs to be built 64 bit.
44 Also there are no 32 bit SELinux libraries installed.
45
46 --
47 Chris PeBenito
48 <pebenito@g.o>
49 Developer,
50 Hardened Gentoo Linux
51
52 Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
53 Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-hardened] SELinux Targeted strangeness Ronan Mullally <ronan@××××××.ie>