From fe3a1dd60438983c96fc0f0d5fd41d39099f8275 Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Sep 25 2019 12:00:57 +0000 Subject: Fix checksec 2.0+ compatibility. --- diff --git a/ruby.spec b/ruby.spec index 2301f29..26a9082 100644 --- a/ruby.spec +++ b/ruby.spec @@ -756,7 +756,7 @@ rm -f %{buildroot}%{gem_dir}/gems/rake-%{rake_version}/.gitignore %check %if 0%{?with_hardening_test} # Check Ruby hardening. -checksec -f libruby.so.%{ruby_version} | \ +checksec --file=libruby.so.%{ruby_version} | \ grep "Full RELRO.*Canary found.*NX enabled.*DSO.*No RPATH.*No RUNPATH.*Yes.*\d*.*\d*.*libruby.so.%{ruby_version}" %endif @@ -1177,6 +1177,7 @@ make check TESTS="-v $DISABLE_TESTS" MSPECOPT="-fs $MSPECOPTS" %changelog * Fri Aug 30 2019 Pavel Valena - 2.6.4-123 - Update to Ruby 2.6.4. +- Fix checksec 2.0+ compatibility. * Fri Jul 26 2019 Fedora Release Engineering - 2.6.3-122 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild