diff --git a/openssh.spec b/openssh.spec index 0ab9a944e7b5690dd08791851157b6fee4828983..0edda3ad38798f7c40f0f600f001c09da68ab3db 100644 --- a/openssh.spec +++ b/openssh.spec @@ -6,7 +6,7 @@ %{?no_gtk2:%global gtk2 0} %global sshd_uid 74 -%global openssh_release 29 +%global openssh_release 30 Name: openssh Version: 8.8p1 @@ -383,7 +383,17 @@ make popd %check +if [ -e /sys/fs/selinux/enforce ]; then + # Store the SElinux state + cat /sys/fs/selinux/enforce > selinux.tmp + setenfore 0 +fi make tests +if [ -e /sys/fs/selinux/enforce ]; then + # Restore the SElinux state + cat selinux.tmp > /sys/fs/selinux/enforce + rm -rf selinux.tmp +fi %install mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh @@ -508,6 +518,12 @@ getent passwd sshd >/dev/null || \ %attr(0644,root,root) %{_mandir}/man8/sftp-server.8* %changelog +* Mon Apr 29 2024 renmingshuai - 8.8p1-30 +- Type:bugfix +- CVE: +- SUG:NA +- DESC:Disable SElinux when make tests + * Thu Mar 14 2024 renmingshuai - 8.8p1-29 - Type:bugfix - CVE: