From 69e1c981a94d6ffb916ee49c170d1e4c3f809f76 Mon Sep 17 00:00:00 2001 From: Mark Esler Date: Thu, 7 Nov 2024 11:36:26 -0800 Subject: distinguish package build flags closes #6 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 98ca18a..31d17ed 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Usage of enabled-by-default hardening-related compiler flags across Linux distributions +# Default compiler hardening flags used to build packages for Linux distributions |. | Alpine | Debian | Fedora | Gentoo | Gentoo Hardened | Ubuntu | OpenSUSE | ArchLinux | OpenBSD | Chimera Linux | Android | Google Chrome | |---------------------------------|--------|--------|-----------|--------|-----------------|--------|----------|-----------|---------|---------------|---------|---------------| @@ -37,6 +37,7 @@ Note that: - while Google Chrome isn't a distribution, given the size of its source code, it's close enoughâ„¢ to warrant inclusion in the table. +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. Sources and resources: - https://src.fedoraproject.org/rpms/redhat-rpm-config//blob/rawhide/f/buildflags.md -- cgit v1.3