Gentoo Archives: gentoo-user

From: Michael Crute <mcrute@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user][SOLVED] Grub, Hardened, and AMD64
Date: Wed, 21 Jun 2006 13:42:30
Message-Id: 558b73fb0606210629j30e03b24id95d808b856bd4f3@mail.gmail.com
In Reply to: Re: [gentoo-user] Grub, Hardened, and AMD64 by Rumen Yotov
1 On 6/20/06, Rumen Yotov <rumen@××××××.org> wrote:
2 > Michael Crute wrote:
3 > > I am building a server (AMD Opteron 64) and as a matter of policy I
4 > > always run the hardened profile on my servers. Now this is my first
5 > > time doing an install on an AMD64 architecture with hardened and so
6 > > far it has gone relatively well. The thing that is giving me the most
7 > > problems is Grub. When I try to emerge it in the hardened chroot the
8 > > config script bombs out with an error 'C compiler cannot create
9 > > executables'. One suggested solution was to disable sandbox in
10 > > features and try again, no such luck. My next thought was to build a
11 > > second chroot with a regular (non-hardened) tarball and build a
12 > > package of grub (compiled using the static useflag) then emerge that
13 > > in the hardened environment. Does this make sense? Is it likely to
14 > > work or should I be doing something else? Any help would be
15 > > appreciated.
16 > >
17 > > Note that simply not using the hardened profile is not an option here.
18
19 I emerged Grub in a separate non-hardened chroot, built a binary
20 package and emerged it into my hardened chroot and everything worked
21 like a charm. I did use the custom-cflags and static USE flag on the
22 build, I'm not sure if custom-cflags is needed but I'm pretty sure
23 static is required since the 32bit libs aren't available on my system
24 outside of the chroot used to build the package. If I'm wrong on this
25 let me know. If anyone else happens to be running an Opteron processor
26 and would benefit from the package I would be glad to post it.
27
28 -Mike
29
30 --
31 ________________________________
32 Michael E. Crute
33 http://mike.crute.org
34
35 I may not have gone where I intended to go, but I think I have ended
36 up where I intended to be. --Douglas Adams
37 --
38 gentoo-user@g.o mailing list