Disable SElinux when make tests
This commit is contained in:
parent
fd34c4ef7f
commit
0f7d6b9929
18
openssh.spec
18
openssh.spec
@ -6,7 +6,7 @@
|
|||||||
%{?no_gtk2:%global gtk2 0}
|
%{?no_gtk2:%global gtk2 0}
|
||||||
|
|
||||||
%global sshd_uid 74
|
%global sshd_uid 74
|
||||||
%global openssh_release 2
|
%global openssh_release 3
|
||||||
|
|
||||||
Name: openssh
|
Name: openssh
|
||||||
Version: 9.3p2
|
Version: 9.3p2
|
||||||
@ -318,7 +318,17 @@ make
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
if [ -e /sys/fs/selinux/enforce ]; then
|
||||||
|
# Store the SElinux state
|
||||||
|
cat /sys/fs/selinux/enforce > selinux.tmp
|
||||||
|
setenfore 0
|
||||||
|
fi
|
||||||
make tests
|
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
|
%install
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
|
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
|
||||||
@ -453,6 +463,12 @@ getent passwd sshd >/dev/null || \
|
|||||||
%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
|
%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 29 2024 renmingshuai <renmingshuai@huawei.com> - 9.3p2-3
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Disable SElinux when make tests
|
||||||
|
|
||||||
* Wed Jan 31 2024 renmingshuai<renmingshuai@huawei.com> - 9.3p2-2
|
* Wed Jan 31 2024 renmingshuai<renmingshuai@huawei.com> - 9.3p2-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user