Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Non-hardened to hardened
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ScOut3R
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2005
Posts: 116
Location: Australia

PostPosted: Fri Jun 22, 2007 1:06 pm    Post subject: Non-hardened to hardened Reply with quote

Hey There!

I have a "non-hardened" Gentoo server. I know it's not a good idea, but when i had to install it i didn't have time to make a stage 1 bootstrap. So, not long ago glibc-2.5 became stable in the hardened profile and i'm thinking about recompile the whole system to become hardened. These are the steps which i think necessary: first of all a change de profile to hardened, than i compile glibc-2.5 with gcc 4.1.2 (this is the actual compiler), then i compile 3.4.6 gcc, then i compile glibc-2.5 again but now with gcc 3.4.6, then again i recompile gcc 3.4.6, and after this a recompile world, and last i remoce gcc 4.1.2.
I'd like to ask you that will this work or should i use another way?
Back to top
View user's profile Send private message
Abraxas
l33t
l33t


Joined: 25 May 2003
Posts: 814

PostPosted: Fri Jun 22, 2007 2:45 pm    Post subject: Reply with quote

I would think that you only have to emerge the vanilla versions of gcc-4.1.2 and glibc-2.5 and then recompile the hardened versions. Then recompile world. It looks like gcc is stuck on 3.4.6 for the hardened profile but you should be using kevquinn's pieworld overlay for gcc if you want a fully hardened gcc-4.1.2/glibc-2.5 system. I am running it on x86_64 right now.
Back to top
View user's profile Send private message
ScOut3R
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2005
Posts: 116
Location: Australia

PostPosted: Sun Jun 24, 2007 1:22 pm    Post subject: Reply with quote

Abraxas wrote:
I would think that you only have to emerge the vanilla versions of gcc-4.1.2 and glibc-2.5 and then recompile the hardened versions. Then recompile world. It looks like gcc is stuck on 3.4.6 for the hardened profile but you should be using kevquinn's pieworld overlay for gcc if you want a fully hardened gcc-4.1.2/glibc-2.5 system. I am running it on x86_64 right now.


I'm okay with the 3.4.6 version. I just asked because I don't want to break my system with this change. So I'm still interested if this way will work or not.
Back to top
View user's profile Send private message
ScOut3R
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2005
Posts: 116
Location: Australia

PostPosted: Wed Jun 27, 2007 1:11 pm    Post subject: Reply with quote

UP!
Back to top
View user's profile Send private message
Abraxas
l33t
l33t


Joined: 25 May 2003
Posts: 814

PostPosted: Fri Jun 29, 2007 9:52 pm    Post subject: Reply with quote

ScOut3R wrote:
Abraxas wrote:
I would think that you only have to emerge the vanilla versions of gcc-4.1.2 and glibc-2.5 and then recompile the hardened versions. Then recompile world. It looks like gcc is stuck on 3.4.6 for the hardened profile but you should be using kevquinn's pieworld overlay for gcc if you want a fully hardened gcc-4.1.2/glibc-2.5 system. I am running it on x86_64 right now.


I'm okay with the 3.4.6 version. I just asked because I don't want to break my system with this change. So I'm still interested if this way will work or not.


I don't think gcc-3 is going to work with glibc-2.5 if you want to use SSP, which is a part of the hardened profile. SSP is different in gcc-4 and not compatible with earlier versions. It will only work if Gentoo has backported the current SSP to gcc-3 or has support for the old SSP in the new gcc, which is not standard. I heard rumblings of this not to long ago but I'm not sure if either of these solutions are a part of the stable tree.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum