public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] hardened glibc and gcc dependencies
@ 2011-10-27  9:03 "Paweł Hajdan, Jr."
  2011-10-27 16:08 ` "Paweł Hajdan, Jr."
  0 siblings, 1 reply; 11+ messages in thread
From: "Paweł Hajdan, Jr." @ 2011-10-27  9:03 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

As a part of my earlier threads I tried to figure out the migration plan
from not hardened glibc and not hardened gcc to both of them hardened.

That of course raises questions like - what we compile first, and what
are dependencies here?

Here's what I have figured out - by _experimenting_ not speculation:

1. Building glibc with USE=hardened works, no matter whether the
toolchain is hardened or not.

2. However, glibc won't apply one hardening-related patch if the used
toolchain is not pie-enabled.

3. Interestingly, gcc with USE=hardened compiles fine even if glibc is
-hardened. The vanilla spec works. I haven't tested the hardened spec.

Based on that, I suggest the following dependency changes (conceptually):

In glibc: DEPEND="gcc[hardened?]"
In gcc: PDEPEND="elibc_glibc? glibc[hardened?]"

Thoughts?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-10-31  0:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27  9:03 [gentoo-dev] hardened glibc and gcc dependencies "Paweł Hajdan, Jr."
2011-10-27 16:08 ` "Paweł Hajdan, Jr."
2011-10-27 16:49   ` [gentoo-dev] " Duncan
2011-10-27 17:33   ` [gentoo-dev] " Nirbheek Chauhan
2011-10-27 23:47     ` [gentoo-dev] " Ryan Hill
2011-10-27 23:50       ` Mike Frysinger
2011-10-28 11:36         ` Anthony G. Basile
2011-10-28 17:20           ` Nirbheek Chauhan
2011-10-30 22:24         ` Petteri Räty
2011-10-31  1:04           ` Ryan Hill
2011-10-28  3:03       ` Nirbheek Chauhan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox