Release 3.0-11

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

Resolves: RHEL-33491

Signed-off-by: Tao Liu <ltao@redhat.com>
This commit is contained in:
Tao Liu 2024-04-24 10:36:23 +08:00
parent bf79170d6b
commit 994610c6b0
2 changed files with 7 additions and 2 deletions

View File

@ -30,7 +30,8 @@ index a9e0a21..b4573b4 100755
trace.so: $(INCDIR)/defs.h trace.c trace.so: $(INCDIR)/defs.h trace.c
- gcc $(RPM_OPT_FLAGS) -Wall -I$(INCDIR) -nostartfiles -shared -rdynamic -o trace.so trace.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) - gcc $(RPM_OPT_FLAGS) -Wall -I$(INCDIR) -nostartfiles -shared -rdynamic -o trace.so trace.c -fPIC -D$(TARGET) $(TARGET_CFLAGS)
+ gcc $(RPM_OPT_FLAGS) -Wall -I$(INCDIR) -nostartfiles -shared -rdynamic -Wl,-soname,trace.so -o trace.so trace.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) + gcc $(RPM_OPT_FLAGS) -Wall -I$(INCDIR) -nostartfiles -shared -rdynamic -Wl,-z,now -Wl,-soname,trace.so -o trace.so trace.c -fPIC -D$(TARGET) $(TARGET_CFLAGS)
-- --
2.29.2 2.29.2

View File

@ -3,7 +3,7 @@
Summary: Trace extension module for the crash utility Summary: Trace extension module for the crash utility
Name: crash-trace-command Name: crash-trace-command
Version: 3.0 Version: 3.0
Release: 10%{?dist} Release: 11%{?dist}
License: GPL-2.0-only License: GPL-2.0-only
Source: https://github.com/fujitsu/crash-trace/archive/v%{version}/%{name}-%{version}.tar.gz Source: https://github.com/fujitsu/crash-trace/archive/v%{version}/%{name}-%{version}.tar.gz
URL: https://github.com/fujitsu/crash-trace URL: https://github.com/fujitsu/crash-trace
@ -37,6 +37,10 @@ install -m 0755 -t %{buildroot}%{_libdir}/crash/extensions %{_builddir}/%{repona
%license COPYING %license COPYING
%changelog %changelog
* Wed Apr 24 2024 Tao Liu <ltao@redhat.com> - 3.0-11
- Fix the hardening issue "FAIL: bind-now test because not linked with -Wl,-z,now"
- add gating.yaml
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-10 * Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild