Fix the hardening issue "FAIL: bind-now test because not linked with -Wl,-z,now"

Resolves: rhbz#2028717

Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
This commit is contained in:
Lianbo Jiang 2021-12-07 19:33:10 +08:00
parent c3934f376f
commit b8d17181b7
1 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@
Summary: Gcore extension module for the crash utility
Name: crash-gcore-command
Version: 1.6.2
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2
Source0: https://github.com/fujitsu/crash-gcore/archive/v%{version}/%{name}-%{version}.tar.gz
URL: https://github.com/fujitsu/crash-gcore
@ -21,7 +21,7 @@ running in a kernel dump file.
%autosetup -n %{reponame}-%{version}
%build
%make_build -C src -f gcore.mk
%make_build CFLAGS="%{optflags} -Wl,-z,now" -C src -f gcore.mk
%install
install -m 0755 -d %{buildroot}%{_libdir}/crash/extensions
@ -34,6 +34,9 @@ install -m 0755 -t %{buildroot}%{_libdir}/crash/extensions %{_builddir}/%{repona
%license COPYING
%changelog
* Tue Dec 07 2021 Mohan Boddu <mboddu@redhat.com> - 1.6.2-4
- Fix the hardening issue "FAIL: bind-now test because not linked with -Wl,-z,now"
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.6.2-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688