diff options
| author | Mark Esler | 2024-11-07 11:36:26 -0800 |
|---|---|---|
| committer | Julien Voisin | 2024-11-07 19:42:49 +0000 |
| commit | 69e1c981a94d6ffb916ee49c170d1e4c3f809f76 (patch) | |
| tree | 7ae0a8a09e535a11a5fb4c6394f8abafc7ec6fb6 | |
| parent | 2dc4313f4563449d2dd6328eebf90bc061cf4c4c (diff) | |
distinguish package build flags
closes #6
| -rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | # Usage of enabled-by-default hardening-related compiler flags across Linux distributions | 1 | # Default compiler hardening flags used to build packages for Linux distributions |
| 2 | 2 | ||
| 3 | |. | Alpine | Debian | Fedora | Gentoo | Gentoo Hardened | Ubuntu | OpenSUSE | ArchLinux | OpenBSD | Chimera Linux | Android | Google Chrome | | 3 | |. | Alpine | Debian | Fedora | Gentoo | Gentoo Hardened | Ubuntu | OpenSUSE | ArchLinux | OpenBSD | Chimera Linux | Android | Google Chrome | |
| 4 | |---------------------------------|--------|--------|-----------|--------|-----------------|--------|----------|-----------|---------|---------------|---------|---------------| | 4 | |---------------------------------|--------|--------|-----------|--------|-----------------|--------|----------|-----------|---------|---------------|---------|---------------| |
| @@ -37,6 +37,7 @@ Note that: | |||
| 37 | - while Google Chrome isn't a distribution, given the size of its source code, | 37 | - while Google Chrome isn't a distribution, given the size of its source code, |
| 38 | it's close enoughâ„¢ to warrant inclusion in the table. | 38 | it's close enoughâ„¢ to warrant inclusion in the table. |
| 39 | 39 | ||
| 40 | Please do not expect these flags to be enabled in a distros compiler. This repo only tracks compiler hardening flags used to *build* packages (e.g., rpms or debs). For example, in the deb world settings from both gcc and dpkg are used to build package archives. In [most cases Ubuntu sets security hardening flags in the compiler](https://wiki.ubuntu.com/ToolChain/CompilerFlags), but a [few are only set in dpkg](https://bugs.launchpad.net/ubuntu/+source/gcc-14/+bug/2040321). On Debian and Ubuntu the most recent release's archive builds arm64 packages with `-mbranch-protection=standard`, but you need to manually set the flag when compiling your own code. | ||
| 40 | 41 | ||
| 41 | Sources and resources: | 42 | Sources and resources: |
| 42 | - https://src.fedoraproject.org/rpms/redhat-rpm-config//blob/rawhide/f/buildflags.md | 43 | - https://src.fedoraproject.org/rpms/redhat-rpm-config//blob/rawhide/f/buildflags.md |
