X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fblhc;h=7d749028d8df82626aafac63242184f48307764c;hb=7e0e1f565006b0d85f188d2e1d9e31e2c871ec51;hp=53480d48b32a4210e749716d3806373daf09e484;hpb=18cf47c87ad7c5f0ca328d26cea3798a33cb5220;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index 53480d4..7d74902 100755 --- a/bin/blhc +++ b/bin/blhc @@ -2,7 +2,7 @@ # Build log hardening check, checks build logs for missing hardening flags. -# Copyright (C) 2012-2014 Simon Ruderich +# Copyright (C) 2012-2015 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -601,7 +601,7 @@ if ($option_help) { } if ($option_version) { print <<"EOF"; -blhc $VERSION Copyright (C) 2012-2014 Simon Ruderich +blhc $VERSION Copyright (C) 2012-2015 Simon Ruderich This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -710,7 +710,7 @@ foreach my $file (@ARGV) { my $harden_pie = $option_pie; # defaults to 0 # Does this build log use ada? Ada also uses gcc as compiler but uses - # different CFLAGS. But only perform ada checks if an ada compiler used + # different CFLAGS. But only perform ada checks if an ada compiler is used # for performance reasons. my $ada = 0; @@ -982,7 +982,7 @@ foreach my $file (@ARGV) { # Option or auto detected. if ($arch) { - # The following was partially copied from dpkg-dev 1.17.11 + # The following was partially copied from dpkg-dev 1.18.2 # (/usr/share/perl5/Dpkg/Vendor/Debian.pm, add_hardening_flags()), # copyright Raphaël Hertzog , Kees Cook # , Canonical, Ltd. licensed under GPL version 2 or @@ -992,11 +992,10 @@ foreach my $file (@ARGV) { my ($abi, $os, $cpu) = Dpkg::Arch::debarch_to_debtriplet($arch); # Disable unsupported hardening options. - if ($os !~ /^(?:linux|knetbsd|hurd)$/ or - $cpu =~ /^(?:hppa|mips|mipsel|avr32)$/) { + if ($os !~ /^(?:linux|knetbsd|hurd)$/ or $cpu =~ /^(?:hppa|avr32)$/) { $harden_pie = 0; } - if ($cpu =~ /^(?:ia64|alpha|mips|mipsel|hppa)$/ or $arch eq 'arm') { + if ($cpu =~ /^(?:ia64|alpha|hppa)$/ or $arch eq 'arm') { $harden_stack = 0; $harden_stack_strong = 0; } @@ -1573,7 +1572,7 @@ Ejari.aalto@cante.netE for their valuable input and suggestions. =head1 LICENSE AND COPYRIGHT -Copyright (C) 2012-2014 by Simon Ruderich +Copyright (C) 2012-2015 by Simon Ruderich This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by