Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion content/docs/security/Linux_Hardening.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ This is all managed via /etc/fstab
* https://linux.die.net/man/8/execstack

###### Source Fortification
* Usage: ```-DFORTIFY_SOURCE=2```
* Usage: ```-D_FORTIFY_SOURCE=2 -O2``` or ```-D_FORTIFY_SOURCE=3 -O2``` (the latter adds runtime overhead)
* Intention:
* Many programs rely on functions that are not aware of buffer-length
* Buffer overflow exploits often take advantage of these functions
Expand All @@ -293,6 +293,7 @@ This is all managed via /etc/fstab
* Resources:
* https://github.com/intel/safestringlib/wiki/FORTIFY-SOURCE-and-Safe-String-Library
* https://idea.popcount.org/2013-08-15-fortify_source/
* https://developers.redhat.com/articles/2022/09/17/gccs-new-fortification-level

###### Run-time bounds checking for C++ strings/containers
* Usage: ```-Wp, -D_GLIBCXX_ASSERTIONS```
Expand Down