Your message dated Fri, 15 Jun 2012 12:53:56 +0300
with message-id <[email protected]>
and subject line Bug#665188 Close bts:debian
has caused the Debian Bug report #665188,
regarding apng2gif: Hardening flags missing
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
665188: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665188
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apng2gif
Version: 1.4-2
Severity: important
Tags: patch
Dear Maintainer,
The hardening flags are missing because they are not correctly
set in debian/rules.
The following patch bumps debian/compat to 9 to automatically
enable the hardening flags; you could also enable them without
changing compat (see [2]), but compat=9 is the preferred and
simplest solution.
diff -Nru apng2gif-1.4/debian/compat apng2gif-1.4/debian/compat
--- apng2gif-1.4/debian/compat 2012-01-12 18:30:18.000000000 +0100
+++ apng2gif-1.4/debian/compat 2012-03-22 15:22:13.000000000 +0100
@@ -1 +1 @@
-8
+9
diff -Nru apng2gif-1.4/debian/rules apng2gif-1.4/debian/rules
--- apng2gif-1.4/debian/rules 2012-02-05 08:08:53.000000000 +0100
+++ apng2gif-1.4/debian/rules 2012-03-22 15:24:01.000000000 +0100
@@ -11,7 +11,7 @@
$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman
override_dh_auto_build: man
- $(CC) $(CFLAGS) $(PACKAGE).c -o $(BIN) -lz
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(PACKAGE).c -o $(BIN) -lz
override_dh_installman:
dh_installman debian/*.1
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/apng2gif
/usr/bin/apng2gif:
Position Independent Executable: no, normal executable!
Stack protected: yes
Fortify Source functions: yes (some protected functions found)
Read-only relocations: yes
Immediate binding: no not found!
(Position Independent Executable and Immediate binding is not
enabled by default.)
Use find -type f \( -executable -o -name \*.so\* \) -exec
hardening-check {} + on the build result to check all files.
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
--- End Message ---
--- Begin Message ---
Package: apng2gif
Version: 1.5-1
Reason for close:
Package includes fardened build flags.
--- End Message ---