Gentoo Archives: gentoo-hardened

From: Kevin <gentoo-hardened@××××××.biz>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Current proposed way of installing gentoo hardened
Date: Thu, 29 Apr 2004 22:10:57
Message-Id: 200404291810.41497.gentoo-hardened@gnosys.biz
In Reply to: Re: [gentoo-hardened] Current proposed way of installing gentoo hardened by Brandon Hale
1 Hi All-
2
3 I'm late getting in on this thread, but I have to ask:
4
5 Do I need to add these settings to my make.conf before I execute
6 scripts/bootstrap.sh?
7
8 There's nothing in the hardened install docs about that. Or rather,
9 nothing in the docs that I'm using. Then again, I've noticed some
10 differences between what the docs say and what I find on the liveCD (ie.
11 after untarring the stage1 tarball
12 (stage1-pentium4-pie-ssp-2004.0.tar.bz2), there is no
13 directory /mnt/gentoo/selinux to use as a mountpoint for an selinuxfs (as
14 directed in the docs below with the commands below): . I just worked
15 around them using my knowledge of the Gentoo install process and the
16 regular Gentoo Handbook, but maybe I shouldn't have?
17
18 Code Listing 8.3: Prepping and entering the chroot environment
19
20 # mount -t proc proc /mnt/gentoo/proc
21 # mount -t selinuxfs none /mnt/gentoo/selinux <- no such mountpoint so I
22 made one
23 # cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
24 # chroot /mnt/gentoo /bin/bash
25 # env-update
26 Regenerating /etc/ld.so.cache...
27 # source /etc/profile
28 (The above points your shell to the new paths and updated binaries.)
29
30 I'm using this:
31 http://www.gentoo.org/proj/en/hardened/selinux/selinux-x86-install.xml
32
33 as my install docs (and it's the source of the Code Listing 8.3 above).
34 Is this the right source for installing Gentoo Hardened & SELinux? Are
35 there other docs?
36
37 I used these settings (below) for my make.conf before running
38 bootstrap.sh. Should I redo this step using the settings described in
39 this thread?
40
41 =================================================================
42 CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
43 CHOST="i686-pc-linux-gnu"
44 USE="afs sse krb4 kerberos samba ldap sasl doc apache2 acpi apm berkdb
45 crypt cups emacs em
46 acs-w3 encode ethereal evo firebird flac foomaticdb gpm gstreamer guile
47 hardened imap inno
48 db jabber jack java jikes libwww mad mcal mysql ncurses odbc oggvorbis pam
49 pda ppds pdflib
50 perl plotutils png prelude python readline ruby slp spell ssl svga tcltk
51 tetex tiff truet
52 ype unicode usb vhosts X kde qt gnome gtk gtk2 quicktime jpeg gif xinerama
53 X Xaw3d xml xml
54 2 xmms xv zeo alsa avi bonobo acl caps imagemagick icq ipv6"
55 CXXFLAGS="${CFLAGS}"
56 MAKEOPTS="-j3"
57 GENTOO_MIRRORS="http://gentoo.oregonstate.edu/"
58 SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
59 =================================================================
60
61 On Monday 29 March 2004 07:25, Brandon Hale wrote:
62 > On Mon, 2004-03-29 at 08:41 +0200, Tóth Attila wrote:
63 >
64 > The suggested settings are exactly the ones you quoted.
65 > If you find these too agressive, try:
66 >
67 > CFLAGS="-fPIC -fomit-frame-pointer -fstack-protector"
68 > LDFLAGS="-pie -W,-z,noexecstack -W,-z,noexecheap"
69 >
70 > > Hi there,
71 > >
72 > > I recently installed gentoo hardened. After emerging system I found,
73 > > that hardened-gcc was removed. Is there a workaround? Should I take
74 > > care of it? What flags are advised in make.conf?
75 > >
76 > > A quote from Ned Ludd:
77 > >
78 > > CFLAGS="-fPIC -fforce-addr -fomit-frame-pointer
79 > > -fstack-protector-all" LDFLAGS="-pie -W,-z,noexecstack
80 > > -W,-z,noexecheap"
81 > >
82 > > So what are the suggested setting for a new hardened install starting
83 > > from stage2 or stage3?
84 > > Thx,
85 > > Attila Toth
86 > >
87 > > --
88 > > dr Tóth Attila, Radiológus Rezidens, 06-30-5962-962
89 > > Attila Toth MD, Radiology Resident, +36-30-5962-962
90 > >
91 > >
92 > >
93 > > --
94 > > gentoo-hardened@g.o mailing list
95
96 --
97 -Kevin
98
99 --
100 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] Current proposed way of installing gentoo hardened Ed Wildgoose <lists@××××××××××.com>