Bug#668196: proftpd-dfsg: Hardening flags missing for contrib/
Simon Ruderich
simon at ruderich.org
Mon Apr 9 15:58:07 UTC 2012
Package: proftpd-dfsg
Version: 1.3.4a-2
Severity: important
Tags: patch
Dear Maintainer,
The hardening flags are missing for contrib/ because they are
ignored by the build system.
The attached patch fixes the issue.
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/lib/proftpd/mod_wrap.so /usr/lib/proftpd/mod_wrap2_sql.so /usr/lib/proftpd/mod_wrap2_file.so /usr/lib/proftpd/mod_wrap2.so ...
/usr/lib/proftpd/mod_wrap.so:
Position Independent Executable: no, regular shared library (ignored)
Stack protected: yes
Fortify Source functions: unknown, no protectable libc functions used
Read-only relocations: yes
Immediate binding: no not found!
/usr/lib/proftpd/mod_wrap2_sql.so:
Position Independent Executable: no, regular shared library (ignored)
Stack protected: no, not found!
Fortify Source functions: unknown, no protectable libc functions used
Read-only relocations: yes
Immediate binding: no not found!
/usr/lib/proftpd/mod_wrap2_file.so:
Position Independent Executable: no, regular shared library (ignored)
Stack protected: yes
Fortify Source functions: unknown, no protectable libc functions used
Read-only relocations: yes
Immediate binding: no not found!
/usr/lib/proftpd/mod_wrap2.so:
Position Independent Executable: no, regular shared library (ignored)
Stack protected: yes
Fortify Source functions: yes
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contrib-use-dpkgbuildflags.patch
Type: text/x-diff
Size: 2083 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-proftpd-maintainers/attachments/20120409/f7b8f6ec/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-proftpd-maintainers/attachments/20120409/f7b8f6ec/attachment.pgp>
More information about the Pkg-proftpd-maintainers
mailing list