-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardened compiler flags by default #12895
Merged
Merged
Changes from all commits
Commits
Show all changes
563 commits
Select commit
Hold shift + click to select a range
710f4cf
wvstreams: use newer gcc
globin da9352e
haskell.compilers.ghc6104: turn off format hardening
globin e0200a5
ssvnc: turn off format hardening
globin 7412bff
self: use default compiler
globin 351173c
stunnel: 5.29 -> 5.30
globin 46b0d51
flow: 0.18 -> 0.22
globin c045d2d
signing-party: 2.1 -> 2.2
globin b627995
openssh: enable pie hardening
globin 310fa56
nginx: enable pie hardening
globin a737622
socat: enable pie hardening
globin 631c09b
checksec: clean up
globin 87e64f1
cron: enable pie hardening
globin 62f65d1
chrony: enable pie hardening
globin e392824
dnsmasq: enable pie hardening
globin 8b9eccb
radvd: enable pie hardening
globin 1a31447
icecast: enable pie hardening
globin b4dadff
memcached: enable pie hardening
globin 3477e66
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin b3d9562
fix evaluation
globin 5176e7a
mongodb: enable pie hardening
globin 83bf03e
glibc: disable stackprotector hardening
globin 0889372
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin d3fb7ac
dietlibc: fix merge failure
globin 14177f5
speed_dreams: remove obsolete variable
globin cfffac2
postfix: use hardening flags from stdenv
globin 8615f02
v8_3_16_14: use default stdenv
globin 3b4765c
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 4d6db3c
perl520: fix bootstrap compilation by disabling fortify hardening
globin 85515f0
clisp_2_44_1: disable format hardening
globin 2d17e81
clang-analyzer: use default clang
globin 4f0608a
perseus: disable stackprotector hardening
globin 1bbb2f0
pdf2xml: disable format hardening
globin d47857c
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 9ba6bd4
caneda: disable format hardening
globin a6dae3b
gnu-efi: disable stackprotector hardening
globin a12ecfc
refind: disable stackprotector hardening
globin 2f7e9f2
gummiboot: disable stackprotector hardening
globin 33f7d0b
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 4c9c4c4
redmine: disable format hardening
globin fed4942
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 84cc00b
ceph: possible fix for zip timestamps
globin 23d85c7
spark: fix hash
globin 745fa2f
pharo-vm5: disable format hardening
globin c3096a4
memtest86+: disable pic/stackprotector hardening
fadenb e43a384
faac: disable format hardening
fadenb 5a1a8b6
Merge pull request #13673 from mayflower/fix/disable_hardening
globin d4ece75
haskellPackages.epanet-haskell: Turn format hardening off
fpletz a2e449e
coreutils: Skip some tests (filenames too long)
fpletz aff1f4a
Use general hardening flag toggle lists
fpletz cb3d27d
Merge remote-tracking branch 'origin/master' into hardened-stdenv
fpletz 034b2ec
glibc: stackprotector is already disabled in default.nix
fpletz 0cad2e7
vim: Disable hardening flag fortify
fpletz 05a02c5
cc-wrapper: -pie is a ldflag
fpletz fb57bfb
php: enable PIE hardening
fpletz 6473000
opendkim: enable PIE hardening
fpletz 1fb09c1
dhcpcd: enable PIE hardening
fpletz 1b4ec4b
linuxPackages.virtualbox: disable fortify/pic/stackprotector
globin 2013614
vim-configurable: Disable hardening flag fortify
globin 63f60b6
cc-wrapper: Disable pie when linking shared libraries
fpletz ab10928
cc-wrapper: Disable pie for linking static libs
fpletz b2b499e
cc-wrapper: Increase number of functions for stackprotector
fpletz baee91e
cc-wrapper: Check if ld supports -z, fixes darwin
fpletz e9fc4e7
Merge remote-tracking branch 'origin/master' into hardened-stdenv
fpletz fedf316
nginx: Rmove custom hardening, now enabled by default
fpletz ac73835
quicktun: Remove custom hardening, now enabled by default
fpletz 965abb6
libxml2: Disable bindnow hardening
fpletz 9a5b070
hardening: debug with NIX_DEBUG
globin 514a478
cc-wrapper: Fix if syntax
fpletz 7e2e0df
cc-wrapper: Use stderr for NIX_DEBUG output
fadenb 1a5acdb
cc-wrapper: Add additional NIX_DEBUG statements
fadenb a9b942c
cc-wrapper: treat hardeningDisable as string
globin 3f45f09
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin f60c9df
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 7dea0e9
gcc/isl: move bootstrap hardening flags to new bootstrap env
globin 247bc1a
libidn: disable format hardening
globin 97782aa
opendkim: don't enable pie hardening
globin b8e0cb3
jbig2enc: fix merge
globin 4c55a0d
qcmm: fix merge
globin 0fc7905
dhcpcd: do not enable pie hardening
globin c9ebdd4
libaio.i686: disable stackprotector hardening
globin 8f94246
linuxPackages.mxu11x0: disable pic hardening
globin ba3399b
linuxPackages.rtl8723bs: disable pic hardening
globin 4666eca
linuxPackages.mba6x_bl: disable pic hardening
globin 9c3518b
freeswitch: 1.2.3 -> 1.6.6
globin a4e65c3
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin a56d90e
php: Disable bindnow hardening flag
fpletz 753086c
wxPython: Fix build
fpletz 2e08d82
Merge remote-tracking branch 'origin/master'
fpletz 5df521a
gst-python: Disable bindnow hardening flag
fpletz 696d85a
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin d326ca4
stunnel: 5.30 -> 5.31
globin 3437b52
qboot: turn off stackprotector and pic hardening
globin f3f9145
spidermonkey.i686-linux: turn off stackprotector hardening
globin 025cedc
singular.i686-linux: turn off stackprotector hardening
globin 1f978b7
Revert "abook: fix compiling with gcc5"
globin 4ee2b2a
rr: set Wno-error and turn off fortify hardening
globin fbb8067
dietlibc.i686-linux: disable pic
globin 5978109
syslinux: disable fortify hardening
globin df72d62
Revert "php: enable PIE hardening"
globin db6c023
Revert "libxml2: Disable bindnow hardening"
globin f519a25
xorg: switch off bindnow hardening for all packages
globin bbbaccf
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin bdbce02
eggdrop: fix build
globin d007846
ccrypt: disable format hardening
globin d8d6f0b
grub4dos: disable stackprotector hardening
globin 9893a43
gfortran-darwin: disable format hardening
globin 4d4610a
gprolog.i686-linux: disable pic hardening
globin f791c10
lua.i686-linux: disable stackprotector hardening
globin ad9376d
hunspell: disable format hardening
globin 057a899
haskellPackages.glib: disable fortify hardening
globin 58a73d3
haskellPackages.lvmrun: disable format hardening
globin 0086c6d
lrzsz: disable format hardening
globin 8bdd732
wla-dx: disable format hardening
globin 812e25c
mksh: disable format hardening
globin 7a347f6
wml: disable format hardening
globin 88b49cc
tinycc: disable fortify hardening
globin 8d4443a
recutils: disable format hardening
globin 5ca99ae
kernel.i686-linux: disable bindnow hardening
globin a73a28d
fix grammar errors
globin 3e68106
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin d020caa
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin a36f51f
neovim: disable fortify hardening
globin b59a6aa
kernel: turn off bindnow hardening
globin fd77c5c
haskellPackages.gio: turn off fortify hardening
globin 33ef14f
haskellPackages: clean up unnecessary overrides
globin 9a8a9c4
haskellPackages.pango: turn off fortify hardening
globin 0fdde5e
rowhammer-test.isi686-linux: no Werror for format
globin c92bca5
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 9fbc20e
fix merge (webdsl removal)
globin f8d4817
Merge remote-tracking branch 'origin/master' into hardened-stdenv
fpletz 527a605
dar: disable format hardening
globin eb6809e
emacs25pre: disable format hardening
globin 3653798
gcl: disable bindnow hardening
globin 2d382f3
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 2382084
haskellPackages.gtk{,3}: disable fortify hardening
globin a78316c
milu: disable format hardening
globin 878e24b
linuxPackages.dpdk: disable pic hardening
globin e7be116
picat: disable format hardening
globin 8f1e9d9
subtitleeditor: disable format hardening
globin 2a5e64b
maude: disable stackprotector hardening
globin 8031cba
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 851446e
fix merge failure
globin 56b56c2
fix merge failure (2)
globin 99cc3fa
systemd: Disable stackprotector hardening flag
fpletz 06ed235
gcc6: disable format hardening flag
globin 2fa0312
libdwg: disable format hardening flag
globin d9e5fd3
gnome3_20.nautilus: disable format hardening flag
globin 0761573
gnome3_20.libgda: disable format hardening flag
globin 26dd9ac
Merge remote-tracking branch 'origin/master' into hardened-stdenv
fpletz 0cee9fe
Merge remote-tracking branch 'origin/master' into hardened-stdenv
fpletz f597e97
atlas: Fix hardening
fpletz 5185bc1
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 6539901
Merge remote-tracking branch 'upstream/hardened-stdenv' into hardened…
globin 203846b
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 04d873a
osx-private-sdk: Fix hash
globin cc54084
linuxPackages.wireguard: disable pic
globin 1f04b4a
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin f222d98
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 43ba8d2
nvidia-x11: disable pic/format hardening
globin 63c7b4f
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 1be4907
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 68a953c
nedit: disable format hardening
fpletz 1005f46
xpdf: disable format hardening
fpletz 44b24cc
motif: disable format hardening
globin 15b8491
seabios: disable fortify hardening
fpletz cbc8fc2
zgv: disable format hardening
globin b9152cf
yabar: disable format hardening
globin c0830c1
wasm: disable format hardening
globin 0eb6023
libjson_rpc_cpp: disable format hardening
globin b0d748e
bitkeeper: disable fortify hardening
fpletz f2a66d4
criu: fix merge fail
fpletz 0751027
wxPython: Disable format hardening
fpletz c22c137
ruby_2_0: disable format hardening
fpletz fbbd50d
unicon-lang: disable fortify hardening
fpletz f0d0164
tracefilesim: disable fortify hardening
fpletz c1f1fd6
gegl_0_3: disable format hardening, add autoreconfHook
fpletz 98473cd
x42-plugins: fix unpacking
globin 3f9e860
vxl: remove obsolete patch
globin 1b979d8
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin a132aa4
gjay: disable format hardening
globin c95ab0a
gnumake380: disable format hardening
globin 08928dc
kconfig-frontends: disable format hardening
globin e266c6a
eboard: disable format hardening
globin 847f999
gnugo: disable format hardening
globin 7423e02
convertlit: disable format hardening
globin 708653a
kino: disable format hardening
globin bfa5a27
pfixtools: set -Wno-error=unused-result
globin a3a2d52
rman: disable format hardening
globin 4f6bd09
spidermonkey_1_8_0rc1: disable format hardening
globin 552a8c4
talkfilters: disable format hardening
globin 7ab971a
scummvm: disable format hardening
globin 4632389
ctpp2: use default gcc
globin 7e81a42
dlx: disable format hardening
globin a748f31
fakenes: disable format hardening
globin a2ce153
fondu: disable fortify hardening
globin 56e69fc
iptraf: disable fortify hardening
globin e2844fc
fontmatrix: disable fortify hardening
globin 3bff873
libgksu: disable fortify hardening
globin 78fc5dd
mmv: disable fortify hardening
globin dd7e091
bip: set -Wno-error=unused-result, remove --disable-pie
globin 05dbbae
vlan: disable format hardening
fpletz 1f06067
x2x: disable format hardening
fpletz b898fda
xmlroff: disable format hardening
fpletz f993dff
trackballs: disable format hardening
fpletz 56f0316
reiser4progs: disable format hardening
fpletz 8b7dc1a
ploticus: disable format hardening
fpletz 0c7f045
tex4ht: disable format hardening
fpletz 1f1637f
lprof: disable format hardening
fpletz 19f5e2a
x2vnc: disable format hardening
globin bc025e8
uclibc: disable stackprotector hardening
globin b7787d9
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin f7da99c
xorg.xorgserver: disable relro hardening
globin d1b2c34
qrcode: enable fortify hardening, disable warning
fpletz 55966c2
doc: complete the hardening documentation
fpletz 7a56781
dvdisaster: remove obsolete fortify disabling
globin 572490b
udftools: remove obsolete gcc5 patch
globin bea8972
nixos.tests.boot-stage1: disable pic for kernel module
globin af04b6d
hardening docs: fix typo
globin 0f274be
linuxPackages.ena: disable pic
globin 7d9d2d6
linuxPackages.broadcom_sta: disable pic hardening
fpletz a8deb8d
linuxPackages.frandom: disable pic hardening
fpletz f5c9f99
linuxPackages.ati_drivers_x11: disable pic & format hardening
fpletz d836b81
linuxPackages.cryptodev: 1.6 -> 1.8, disable pic hardening
fpletz 5e085b7
linuxPackages.e1000e: disable pic hardening
fpletz f55fd87
linuxPackages.ixgbevf: disable pic hardening
fpletz 62e6bc0
linuxPackages.prl-tools: disable pic hardening
fpletz 73a9ce2
linuxPackages.psmouse_alps: remove, driver in kernel since 3.9
fpletz 5103e70
linuxPackages.nvidiabl: disable pic hardening
fpletz 9e7d118
linuxPackages.nvidia-x11: disable pic & format hardening
fpletz b2c6d28
linuxPackages.ndiswrapper: disable pic hardening (still broken)
fpletz fa3a35b
linuxPackages.fusionio-vsl: disable pic hardening (still broken)
fpletz bd4490e
Merge branch 'master' into hardened-stdenv
fpletz 2676cf9
linuxPackages.lttng-modules: fix build
globin 8071caf
linuxPackages.rtl8812au: fix build
globin 27b9f5d
xorg.*: disable relro/bindnow hardening
globin 99cb230
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin 1747d28
glibc: add patch to fix segfault in forkpty
globin 33e1c78
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
globin e0f124a
calamares/tarball test: fix eval error
obadz b4cc9bd
Merge remote-tracking branch 'origin/master' into hardened-stdenv
fpletz 335d009
cc-wrapper: add-{flags,hardening} -> add-{flags,hardening}.sh
globin 07604ad
add-hardening.sh: fix quotation
globin 3a18f06
Revert "lsh: remove last references"
globin 7413278
Revert "Remove lsh, broken & unmaintained"
globin 8ab4009
lsh: fix gcc5 build
joachifm 9e21120
czmq: fix build
globin 3c06e5f
cc-wrapper: check ld hardening capabilities in stdenv
fpletz 17234ca
ccl: fix hash
fpletz 8576aea
cc-wrapper: fix detection of unsupported linker flags
fpletz c0fa26e
Merge remote-tracking branch 'origin/master' into hardened-stdenv
fpletz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not a single flag
hardening = (true|false)
? Seems strange to have two Boolean arguments that are each other's opposite.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, they're not Booleans.