Gentoo Archives: gentoo-hardened

From: Petre Rodan <petre.rodan@××××××××××××.com>
To: Chris PeBenito <pebenito@g.o>
Cc: gentoo-hardened@g.o
Subject: Re: [gentoo-hardened] Re: selinux and ~x86
Date: Tue, 04 Nov 2003 13:50:06
Message-Id: 20031104134522.GA18604@peter.rav.local
1 On Mon, Nov 03, 2003 at 02:47:03PM -0600, Chris PeBenito wrote:
2 > On Mon, 2003-11-03 at 14:02, Petre Rodan wrote:
3 > > looks like dev-libs/openssl-0.9.7c is also a must.
4 > > the selinux-patched net-misc/openssh-3.7.1_p2 won't compile with the
5 > > stable dev-libs/openssl-0.9.6k
6 >
7 > Is this by chance the bug? http://bugs.gentoo.org/show_bug.cgi?id=13795
8 > Its not the same versions, but I ran into that problem in the last month
9 > or so.
10 >
11 > > should this go to bugs.gentoo.org, or it's not such a big thing?
12 > > 0.9.7x is the way to go anyhow ...
13 >
14 > Well this is a big thing. Stable openssh should compile against the
15 > stable openssl. If its not the same problem as that bug above, bugzilla
16 > would be the place to go.
17 >
18 > Before you post the bug, try compiling with use=-selinux. If it doesn't
19 > compile with use=-selinux, just let it get assigned to bug-wranglers
20 > (leave "assigned to:" blank). If it compiles with use=-selinux, but not
21 > use=selinux, then assign the bug to me.
22
23
24 it slipped me last night that the problem was related to the
25 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/openssl/bn.h header file.
26
27 after re-emereging gcc (after emerge =dev-libs/openssl-0.9.6k), openssh compiled flawlessly.
28
29
30 one thing about http://www.gentoo.org/proj/en/hardened/selinux/selinux-quickstart.xml:
31
32 you do warn people that there is a bug with grub, but there are a few implications with that which are not quite obvious:
33
34 if the user blindly removes the /boot/boot symlink and modifies grub.conf there is the possibility that on next reboot he'll see 'grub error 15'
35 he sould have re-installed grub (I think grub still expects to find the stages in (hd0)/boot/grub/stageX (instead of (hd0)/grub/stageX) and hence the error)
36
37 in my case on a propolice system, the chroot from the livecd won't work, so installing grub back to mbr is not so simple.
38
39 and I use monolithic kernels, so tweaking mkinitrd was also needed
40
41 my 2 cents,
42 peter
43
44 BTW,
45 this idea of having the policy in two places (in /etc/security/selinux/.. and inside initrd.gz) is temporary, right? =)
46
47
48 --
49
50 Petre Rodan
51 Senior Network Engineer
52 GeCAD Software - RAV Division
53
54 ----------------------------------------------------------------------
55 Tel/Fax: +40-21-321-7803
56 Hotline: +40-21-321-7859
57
58 This message is confidential. It may also be privileged or otherwise
59 protected by work product immunity or other legal rules. It may contain
60 personal views which are not the views of the GeCAD unless specifically
61 stated.
62 If you have received it in error, please delete it from your system.
63 Do not use, copy or disclose the information in any way nor act in
64 reliance on it and notify the sender immediately.

Replies

Subject Author
Re: [gentoo-hardened] Re: selinux and ~x86 Chris PeBenito <pebenito@g.o>