Package: epstool Version: 3.08+repack-2 Severity: important Tags: patch Dear Maintainer,
The CPPFLAGS hardening flags are missing because the build system ignores them. The following patch fixes the issue by adding them to CFLAGS/CXXFLAGS. For more hardening information please have a look at [1], [2] and [3]. diff -Nru epstool-3.08+repack/debian/rules epstool-3.08+repack/debian/rules --- epstool-3.08+repack/debian/rules 2012-03-10 16:37:14.000000000 +0100 +++ epstool-3.08+repack/debian/rules 2012-04-07 18:34:57.000000000 +0200 @@ -5,6 +5,13 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +# The build system doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to +# enable the missing (hardening) flags. dpkg_buildflags is necessary because +# $(shell ..) doesn't use local environment variables. +dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS=$(DEB_BUILD_MAINT_OPTIONS) dpkg-buildflags +export DEB_CFLAGS_MAINT_APPEND = $(shell $(dpkg_buildflags) --get CPPFLAGS) +export DEB_CXXFLAGS_MAINT_APPEND = $(shell $(dpkg_buildflags) --get CPPFLAGS) + %: dh $@ To check if all flags were correctly enabled you can use `hardening-check` from the hardening-includes package and check the build log (hardening-check doesn't catch everything): $ hardening-check /usr/bin/epstool /usr/bin/epstool: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: yes Regards, Simon [1]: https://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags [2]: https://wiki.debian.org/HardeningWalkthrough [3]: https://wiki.debian.org/Hardening -- + privacy is necessary + using gnupg http://gnupg.org + public key id: 0x92FEFDB7E44C32F9
signature.asc
Description: Digital signature