[pkg-dhcp-devel] Bug#644413: isc-dhcp: please enable hardening options
pollux at debian.org
Wed Oct 5 15:46:31 UTC 2011
User: debian-qa at lists.debian.org
Hardening options is a proposed release goal for Wheezy .
Having important package, interpreters and daemons compiled with the
hardening options will add various protections against issues such as
stack smashing, predictable locations of values in memory, etc.
I have rebuilt the package with hardening options enabled and there was
no error (during build, or at runtime).
The attached patch adds a minimal modification to the debian/rules file
to add support for hardening flags (other methods are available).
Note that PIE and bindnow are not enabled by default, and that you can
decide to enable this options for additional features (see the following
link for details).
You can control and enable/disable each hardening flag independently,
-------------- next part --------------
--- isc-dhcp-4.2.2.orig/debian/rules 2011-10-05 17:32:37.000000000 +0200
+++ isc-dhcp-4.2.2/debian/rules 2011-10-05 17:07:18.000000000 +0200
@@ -22,7 +22,10 @@
-CFLAGS = -Wall -g
+DPKG_EXPORT_BUILDFLAGS = 1
+CFLAGS += -Wall -g
INSTALL = install
INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
More information about the pkg-dhcp-devel