Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

hardened->vanilla

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

hardened->vanilla

  • Quote

Post by sotn3m » Sun Jul 02, 2006 5:59 am

I would like to change my system from being "hardened" to vanilla. One of the reasons is that I could use prelink.

My question is: is there anyone who maybe tried to write a script which will remerge packages which have binaries still hardened? Remerging all will take me a week and it would be nice to have such a tool. For example, during remerge, if anything fails then there is a need to track all things that were already done and remerge only the others.. Lots of packages->lots of work ;) or I would like to remerge "system" first and then the rest of the world...

Any ideas, anyone?;)
M3ntos
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

  • Quote

Post by sotn3m » Tue Jul 04, 2006 5:54 am

bump ..
how would you change suddenly everything from hardened to normal gcc? or maybe I don't need to change everything?

It's weird. Hardened problems are the ones, noone knows answers 8)
M3ntos
Top
erikm
l33t
l33t
Posts: 634
Joined: Tue Feb 08, 2005 12:03 pm

Re: hardened->vanilla

  • Quote

Post by erikm » Tue Jul 04, 2006 7:46 am

sotn3m wrote:I would like to change my system from being "hardened" to vanilla. One of the reasons is that I could use prelink.

My question is: is there anyone who maybe tried to write a script which will remerge packages which have binaries still hardened? Remerging all will take me a week and it would be nice to have such a tool. For example, during remerge, if anything fails then there is a need to track all things that were already done and remerge only the others.. Lots of packages->lots of work ;) or I would like to remerge "system" first and then the rest of the world...

Any ideas, anyone?;)
Prelink works perfectly with the hardened toolchain. Some people seem to have had problems with prelink and the hardened kernel sources, but that is something else entirely.
Otherwise, the hardened profile only affects most packages at build time (using the hardened gcc profile). A small number of packages (ex. pkgconfig, glib) are influenced by the hardened use flag and those use flags implied (ex. selinux) by the hardened profile.
These shouldn't be too hard to reemerge with the vanilla profile via a standard 'emerge -uDN world'.

I myself have been using the hardened profile with moderate CFLAGS and LDFLAGS, prelink, and a ck kernel for the better part of a year now. Save for the extremely rare failed build, I cannot think of a reason not to use the hardened profile.
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

Re: hardened->vanilla

  • Quote

Post by sotn3m » Sat Jul 08, 2006 9:44 am

erikm wrote: Prelink works perfectly with the hardened toolchain. Some people seem to have had problems with prelink and the hardened kernel sources, but that is something else entirely.
Otherwise, the hardened profile only affects most packages at build time (using the hardened gcc profile). A small number of packages (ex. pkgconfig, glib) are influenced by the hardened use flag and those use flags implied (ex. selinux) by the hardened profile.
These shouldn't be too hard to reemerge with the vanilla profile via a standard 'emerge -uDN world'.

I myself have been using the hardened profile with moderate CFLAGS and LDFLAGS, prelink, and a ck kernel for the better part of a year now. Save for the extremely rare failed build, I cannot think of a reason not to use the hardened profile.
What kind of packages do You have? Cause my doubts came from official prelink guide:
Warning: Prelink will not work with Hardened Gentoo. This is because both projects try to change the address space mapping of shared libraries. But prelink with the -R option randomises library base addresses, providing some degree of hardened protection.
..
M3ntos
Top
GNUtoo
Veteran
Veteran
User avatar
Posts: 1919
Joined: Thu May 05, 2005 9:39 pm

  • Quote

Post by GNUtoo » Sat Jul 08, 2006 1:25 pm

prelinking has securities issues
see http://kerneltrap.org/node/6662
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

  • Quote

Post by sotn3m » Sat Jul 08, 2006 2:37 pm

new_to_non_X86 wrote:prelinking has securities issues
see http://kerneltrap.org/node/6662
I can believe that..
But I am beginning to be fed up with for exemple opera loading almost 10sec...

I have:

Code: Select all

model name      : AMD Sempron(tm) 2200+
cpu MHz         : 1512.272
cache size      : 256 KB
-> most apps should load a lot faster I suppose...
M3ntos
Top
Beefrum
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Tue May 23, 2006 2:46 pm
Contact:
Contact Beefrum
Website

  • Quote

Post by Beefrum » Sun Jul 09, 2006 12:28 am

:? Factory pre-linking?
But I am beginning to be fed up with for exemple opera loading almost 10sec...
:? Give adaptive answers to unknown problems!
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

  • Quote

Post by sotn3m » Sun Jul 09, 2006 7:48 am

Beefrum wrote::? Factory pre-linking?
I didn't quite get it.. Is it about the fact that this is a binary and it can't be prelinked?
M3ntos
Top
Beefrum
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Tue May 23, 2006 2:46 pm
Contact:
Contact Beefrum
Website

  • Quote

Post by Beefrum » Sun Jul 09, 2006 5:49 pm

Keeping people waiting is, of course a corporate policy, YES that's what I meant.
:? Give adaptive answers to unknown problems!
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic