]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
build: Enable hardening options for Debian build.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Mon, 1 Oct 2018 23:44:16 +0000 (00:44 +0100)
committerperexg <perex@perex.cz>
Tue, 2 Oct 2018 14:03:43 +0000 (16:03 +0200)
The Debian guidelines recommend enable hardening for processes
that handle untrusted data such as network listeners.

This sets various compiler flags for stack smashing and
makes some segments read-only.
https://wiki.debian.org/Hardening

debian/rules

index 1208aafc357c04f78a8a95c84059a9e9c4aa22b0..883e095a2e7aa589405d3e666cc5403a8a747713 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
 export DH_VERBOSE=1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
        dh $@ --with-systemd