From fe3a1dd60438983c96fc0f0d5fd41d39099f8275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Wed, 4 Sep 2019 11:46:44 +0200 Subject: [PATCH] Fix checksec 2.0+ compatibility. --- ruby.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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