| @@ -11404,26 +11404,34 @@ Dynamic Section: | | | @@ -11404,26 +11404,34 @@ Dynamic Section: |
11404 | BIND_NOW 0x0000000000000000 | | 11404 | BIND_NOW 0x0000000000000000 |
11405 | </pre> | | 11405 | </pre> |
11406 | <p> | | 11406 | <p> |
11407 | This has to be combined with partial RELRO (see above) to be fully efficient. | | 11407 | This has to be combined with partial RELRO (see above) to be fully efficient. |
11408 | </p> | | 11408 | </p> |
11409 | <p> | | 11409 | <p> |
11410 | This check is now performed automatically (where supported) if | | 11410 | This check is now performed automatically (where supported) if |
11411 | <code class="varname">PKG_DEVELOPER</code> is set. | | 11411 | <code class="varname">PKG_DEVELOPER</code> is set. |
11412 | </p> | | 11412 | </p> |
11413 | </div> | | 11413 | </div> |
11414 | <div class="sect2"> | | 11414 | <div class="sect2"> |
11415 | <div class="titlepage"><div><div><h3 class="title"> | | 11415 | <div class="titlepage"><div><div><h3 class="title"> |
11416 | <a name="hardening.audit.ssp"></a>B.3.4. Checking for SSP</h3></div></div></div> | | 11416 | <a name="hardening.audit.ssp"></a>B.3.4. Checking for SSP</h3></div></div></div> |
| | | 11417 | <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> |
| | | 11418 | <h3 class="title">Note</h3> |
| | | 11419 | <p> |
| | | 11420 | Checking for SSP using this method only works where the operating system |
| | | 11421 | uses <code class="literal">libssp</code>. <code class="literal">libssp</code> is not used |
| | | 11422 | on recent NetBSD/FreeBSD/Linux versions. |
| | | 11423 | </p> |
| | | 11424 | </div> |
11417 | <p> | | 11425 | <p> |
11418 | Building objects, binaries and libraries with SSP will affect the presence of | | 11426 | Building objects, binaries and libraries with SSP will affect the presence of |
11419 | additional symbols in the resulting file: | | 11427 | additional symbols in the resulting file: |
11420 | </p> | | 11428 | </p> |
11421 | <pre class="programlisting"> | | 11429 | <pre class="programlisting"> |
11422 | <strong class="userinput"><code>$ nm /path/to/bin/ary</code></strong> | | 11430 | <strong class="userinput"><code>$ nm /path/to/bin/ary</code></strong> |
11423 | [...] | | 11431 | [...] |
11424 | U __stack_chk_fail | | 11432 | U __stack_chk_fail |
11425 | 0000000000600ea0 B __stack_chk_guard | | 11433 | 0000000000600ea0 B __stack_chk_guard |
11426 | </pre> | | 11434 | </pre> |
11427 | <p> | | 11435 | <p> |
11428 | This is an indicator that the program was indeed built with support for SSP. | | 11436 | This is an indicator that the program was indeed built with support for SSP. |
11429 | </p> | | 11437 | </p> |