Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Switching to hardened
Date: Thu, 14 Feb 2008 13:34:19
Message-Id: 200802141433.59885.wonko@wonkology.org
In Reply to: Re: [gentoo-user] Switching to hardened by Willie Wong
1 Willie Wong wrote Wonko:
2
3 > On Mon, Feb 11, 2008 at 11:24:49PM +0100, Penguin Lover Alex Schuster
4 > squawked:
5 > > I emerged -e again, this time without distcc and ccache. All compiled
6 > > fine, except for media-video/mplayer-1.0_rc2_p24929-r1
7 > > (vf_decimate.c:26: error: can't find a register in class `BREG' while
8 > > reloading `asm') and
9 >
10 > http://bugs.gentoo.org/show_bug.cgi?id=175627
11 >
12 > Like you found below, it can be avoided using vanilla GCC.
13 > That is why I still only have mplayer-1.0_rc1-r2, that one compiled
14 > okay.
15
16 Isn't that the version with those many security holes? But then, looking at
17 <http://www.mplayerhq.hu/design7/news.html>, it seems that all versions pre
18 r25824 have some.
19
20
21 > > x11-misc/xscreensaver-5.04:
22 > > lockward.c:59: error: syntax error before "uint8_t"
23 >
24 > Not a problem with hardened.
25 > http://bugs.gentoo.org/show_bug.cgi?id=208731
26 > Meanwhile, downgrade to 5.03, that one works.
27
28 Thanks!
29
30 > > But most annoying is that the nvidia drivers do not seem to work.
31 > > First,
32 >
33 > what card and which drivers?
34
35 01:00.0 VGA compatible controller: nVidia Corporation NV15 [GeForce2
36 GTS/Pro] (rev a4)
37
38 I have nvidia drivers version 71.86.01 running now. I also re-compiled
39 xorg-server, with vanilla gcc, GLX is running fine again, and I am happy.
40
41 > I have an old card that is not supported by drivers >= 1.0.9700, so
42 > ... scratch that, I didn't notice that the versioning scheme changed.
43 >
44 > http://www.gentoo.org/doc/en/nvidia-guide.xml
45 >
46 > > they refused to compile telling me that this would do more harm than
47 > > good with a hardened setup. I put them into packages.unmask, now they
48 > > compile and the nvidia module loads, but still X has no GLX, xorg.0.log
49 > > says "Failed to initialize GLX extension (NVIDIA X driver not found)",
50 >
51 > This really does not sound like a hardened issue... I need to upgrade
52 > my drivers to the 96.* to see if I can reproduce your problem, but
53 > with 1.0.8776 (from two years ago) I definitely do not have your
54 > problem.
55
56 Maybe I'll try again with hardened then. My experience with nvidia is that
57 that it makes LOTS of trouble. This, and VMware, often made kerned updates
58 a real pain for me. I often got those errors before, with the desktop
59 profile, on different machines.
60
61
62 > > glxinfo segfaults. I guess I will try to re-compile all X stuff with
63 > > the vanilla gcc.
64 >
65 > glxinfo segfaulting is expected. Do you have chpax/paxctl installed?
66
67 No, not yet. I must admit I do not know much about hardened yet, but I want
68 to play around with it and get some experience, so I started with preparing
69 the setup by setting the hardened profile and switching to a hardened
70 kernel.
71
72
73 > I have my entire system on the
74 > hardened profile (including X and nvidia [yes, despite the warnings of
75 > the hardened team about nvidia]) and no problems. My guess is that
76 > your problem with GLX lies somewhere else.
77
78 That's good to hear! So I will stick with hardened.
79
80 > > Would it be possible to make these changes permanent, that is, can I
81 > > tell portage to compile specific packages with a specific
82 > > compiler? /etc/portage/package.compilerflavor or something?
83 >
84 > Don't know. On the wiki there is a way to switch CFLAGS, don't know if
85 > something like that can be used to strip SSP and/or PIC flags from the
86 > hardened.
87
88 I don't find this information there, I guess I did not look hard enough. But
89 there is /etc/portage/bashrc, I can put a little script in there, stripping
90 those flags for the given packages. No problem.
91
92 Thanks again,
93
94 Wonko
95 --
96 gentoo-user@l.g.o mailing list