* Add configure-flags to tor.
@ 2017-01-25 9:31 contact.ng0
2017-01-25 9:31 ` [PATCH] gnu: tor: Add hardening configure-flags contact.ng0
0 siblings, 1 reply; 4+ messages in thread
From: contact.ng0 @ 2017-01-25 9:31 UTC (permalink / raw)
To: guix-devel
This adds tor hardening flags. Do you want me to document the flags in the package? I left it out since it's documented in the tor release itself.
Taken from ReleaseNotes:
'--enable-expensive-hardening'
New --enable-expensive-hardening option to enable security
hardening options that consume nontrivial amounts of CPU and
memory. Right now, this includes AddressSanitizer and UbSan, which
are supported in newer versions of GCC and Clang. Closes ticket
11477.
'--enable-gcc-hardening'
New "--enable-gcc-hardening" ./configure flag (off by default)
to turn on gcc compile time hardening options. It ensures
that signed ints have defined behavior (-fwrapv), enables
-D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
with canaries (-fstack-protector-all), turns on ASLR protection if
supported by the kernel (-fPIE, -pie), and adds additional security
related warnings. Verified to work on Mac OS X and Debian Lenny.
'--enable-linker-hardening'
New "--enable-linker-hardening" ./configure flag (off by default)
to turn on ELF specific hardening features (relro, now). This does
not work with Mac OS X or any other non-ELF binary format.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] gnu: tor: Add hardening configure-flags.
2017-01-25 9:31 Add configure-flags to tor contact.ng0
@ 2017-01-25 9:31 ` contact.ng0
2017-01-30 22:30 ` Leo Famulari
2017-01-30 22:44 ` Ludovic Courtès
0 siblings, 2 replies; 4+ messages in thread
From: contact.ng0 @ 2017-01-25 9:31 UTC (permalink / raw)
To: guix-devel
From: ng0 <contact.ng0@cryptolab.net>
* gnu/packages/tor.scm (tor)[arguments]: Add '--enable-expensive-hardening',
'enable-gcc-hardening', '--enable-linker-hardening' to configure-flags.
---
gnu/packages/tor.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm
index c7f97ab1b..ae8e59b70 100644
--- a/gnu/packages/tor.scm
+++ b/gnu/packages/tor.scm
@@ -48,6 +48,10 @@
(base32
"0hqdk5p6dw4bpn7c8gmhyi8jjkhc37112pfw5nx4gl0g4lmmscik"))))
(build-system gnu-build-system)
+ (arguments
+ `(#:configure-flags (list "--enable-expensive-hardening"
+ "--enable-gcc-hardening"
+ "--enable-linker-hardening")))
(native-inputs
`(("python" ,python-2))) ; for tests
(inputs
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] gnu: tor: Add hardening configure-flags.
2017-01-25 9:31 ` [PATCH] gnu: tor: Add hardening configure-flags contact.ng0
@ 2017-01-30 22:30 ` Leo Famulari
2017-01-30 22:44 ` Ludovic Courtès
1 sibling, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2017-01-30 22:30 UTC (permalink / raw)
To: contact.ng0; +Cc: guix-devel
On Wed, Jan 25, 2017 at 09:31:07AM +0000, contact.ng0@cryptolab.net wrote:
> From: ng0 <contact.ng0@cryptolab.net>
>
> * gnu/packages/tor.scm (tor)[arguments]: Add '--enable-expensive-hardening',
> 'enable-gcc-hardening', '--enable-linker-hardening' to configure-flags.
LGTM. Does anyone else want to test before pushing?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gnu: tor: Add hardening configure-flags.
2017-01-25 9:31 ` [PATCH] gnu: tor: Add hardening configure-flags contact.ng0
2017-01-30 22:30 ` Leo Famulari
@ 2017-01-30 22:44 ` Ludovic Courtès
1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2017-01-30 22:44 UTC (permalink / raw)
To: contact.ng0; +Cc: guix-devel
contact.ng0@cryptolab.net skribis:
> From: ng0 <contact.ng0@cryptolab.net>
>
> * gnu/packages/tor.scm (tor)[arguments]: Add '--enable-expensive-hardening',
> 'enable-gcc-hardening', '--enable-linker-hardening' to configure-flags.
Applied, thanks.
Ludo'.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-30 22:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-25 9:31 Add configure-flags to tor contact.ng0
2017-01-25 9:31 ` [PATCH] gnu: tor: Add hardening configure-flags contact.ng0
2017-01-30 22:30 ` Leo Famulari
2017-01-30 22:44 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).