]> git.notmuchmail.org Git - notmuch/commitdiff
debian: enable build hardening features
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 10 Jun 2019 01:35:03 +0000 (04:35 +0300)
committerDavid Bremner <david@tethera.net>
Tue, 11 Jun 2019 10:24:20 +0000 (07:24 -0300)
Debian's build hardening toolchain options produce binary artifacts
that are more resistant to compromise.  The most visible change for
notmuch today is likely to be the addition of the "bindnow" linker
flag, which contributes to making the "Global Offset Table" fully
read-only.

See https://wiki.debian.org/Hardening for more details.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
debian/rules

index d056edb623944822730fcb7ca13ad40457e27daa..ebd1048170839dfc90aa75c789b1669af252bee2 100755 (executable)
@@ -2,6 +2,8 @@
 
 python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
 %:
        dh $@ --with python2,python3,elpa