Bug 700

Summary: [patch] add a configure option to build with full read-only relocation
Product: unbound Reporter: Remi Gacogne <rgacogne-free+nlnetlabsbugzilla>
Component: serverAssignee: unbound team <unbound-team>
Severity: enhancement CC: cathya, wouter
Priority: P5    
Version: unspecified   
Hardware: x86_64   
OS: Linux   
Attachments: Patch to add a --enable-relro-now option to unbound's configure

Description Remi Gacogne 2015-08-25 17:09:09 CEST
Created attachment 295 [details]
Patch to add a --enable-relro-now option to unbound's configure

Compiling unbound with full RELRO would prevent attackers from overwriting the GOT and .dtors. It implies a small startup penalty but that should not be a problem for a long-standing daemon.
A lot of distributions are enabling full RELRO for network daemons (Gentoo Hardened, Debian, Fedora) and adding a configure option to enable it in unbound would make it easier.

Attached is a proposal to add such an option. Due to my lack of experience with autotools, I am not sure it is the best way to add such an option though.
Comment 1 Wouter Wijngaards 2015-08-28 16:33:21 CEST
Hi Remi,

Thank you for your patch.  It is well written, and I have integrated it.  (also in NSD!).  I hope this can increase the security of the server.

Best regards, Wouter