<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi!<br>
<br>
I'm intending to package a software for Debian. I have a Debian
package with some lintian warning about hardening, but I removed
most of them using hardening-wrapper and the env
DEB_BUILD_HARDENING=1 in my debian/rules.<br>
<br>
I only have one lintian warning now: hardening-no-fortify-functions<br>
<br>
I see that the -D_FORTIFY_SOURCE=2 is included in each compiler
execution. This is the output of hardening-check:<br>
<br>
<blockquote><tt>$ hardening-check --verbose /usr/bin/grive </tt><br>
<tt>/usr/bin/grive:</tt><br>
<tt> Position Independent Executable: yes</tt><br>
<tt> Stack protected: yes</tt><br>
<tt> Fortify Source functions: no, only unprotected functions
found!</tt><br>
<tt> unprotected: memmove</tt><br>
<tt> unprotected: read</tt><br>
<tt> unprotected: memcpy</tt><br>
<tt> Read-only relocations: yes</tt><br>
<tt> Immediate binding: yes</tt><br>
<br>
</blockquote>
I asked on debian-devel and they told me that I can add an override
if only <tt>memmove </tt>or<tt> </tt><tt>memcpy</tt> is shown,
but I have an unprotected <tt>read </tt>too.<br>
<br>
How can I avoid this warning? It is my last problem after doing the
RFS...<br>
<br>
Best regards and thanks in advance :-)<br>
<br>
<pre class="moz-signature" cols="72">--
José Luis Segura Lucas</pre>
</body>
</html>