Spec File: Restore the SElinux context to %%{_libdir}.
Resolves: RHEL-22817
This commit is contained in:
parent
6a4c2e4e9f
commit
481b224464
@ -9,7 +9,7 @@ BuildRequires: scl-utils-build
|
||||
Summary: A GNU collection of binary utilities
|
||||
Name: %{?scl_prefix}binutils
|
||||
Version: 2.40
|
||||
Release: 18%{?dist}
|
||||
Release: 19%{?dist}
|
||||
License: GPLv3+
|
||||
URL: https://sourceware.org/binutils
|
||||
|
||||
@ -1111,15 +1111,6 @@ export QA_RPATHS=0x0003
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%if %{with gold}
|
||||
%post gold
|
||||
|
||||
%{alternatives_cmdline} --install %{_bindir}/ld ld \
|
||||
%{_bindir}/ld.gold %{ld_gold_priority}
|
||||
|
||||
exit 0
|
||||
%endif
|
||||
|
||||
%post
|
||||
|
||||
%__rm -f %{_bindir}/ld
|
||||
@ -1134,11 +1125,40 @@ exit 0
|
||||
# BZ 2232410: We cannot be sure that the GTS runtime rpm has restored the SE context.
|
||||
restorecon -R %{_scl_root}/usr/share/locale
|
||||
|
||||
# RHEL-22817:
|
||||
# RHEL-22817: Restore the SELinux context of the bfd-plugins.
|
||||
restorecon -R %{_libdir}
|
||||
|
||||
exit 0
|
||||
|
||||
#------------------
|
||||
|
||||
%post devel
|
||||
# RHEL-22818: Restore the SELinux context of the libraries.
|
||||
restorecon -R %{_libdir}
|
||||
exit 0
|
||||
|
||||
#------------------
|
||||
|
||||
%if %{with gprofng}
|
||||
%post gprofng
|
||||
# RHEL-22817: Restire the SELinux context of the gprofng libraries.
|
||||
restorecon -R %{_libdir}
|
||||
# And the rc file.
|
||||
restorecon /opt/rh/gcc-toolset-13/root/usr/etc/gprofng.rc
|
||||
exit 0
|
||||
%endif
|
||||
|
||||
#------------------
|
||||
|
||||
%if %{with gold}
|
||||
%post gold
|
||||
|
||||
%{alternatives_cmdline} --install %{_bindir}/ld ld \
|
||||
%{_bindir}/ld.gold %{ld_gold_priority}
|
||||
|
||||
exit 0
|
||||
%endif
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
# Note: $1 == 0 means that there is an uninstall in progress.
|
||||
@ -1289,8 +1309,9 @@ exit 0
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
%changelog
|
||||
* Tue Jan 30 2024 Nick Clifton <nickc@redhat.com> - 2.40-18
|
||||
- Spec File: Restore the SElinux context to %%{_libdir}. (RHEL-22818)
|
||||
* Fri Feb 09 2024 Nick Clifton <nickc@redhat.com> - 2.40-19
|
||||
- Spec File: Restore the SElinux context to %%{_libdir}. (RHEL-22817)
|
||||
- [2.40-18: was a failed attempt to fix RHEL-22817]
|
||||
|
||||
* Thu Jan 11 2024 Nick Clifton <nickc@redhat.com> - 2.40-17
|
||||
- Spec File: Do not use of the system zlib by default. (RHEL-19373)
|
||||
|
Loading…
Reference in New Issue
Block a user