don't disable AllowTcpForwarding anymore, leave default (=yes, for x2goserver) [release 7.2p2-2mamba;Fri Apr 08 2016]

This commit is contained in:
Silvan Calarco 2024-01-06 08:15:55 +01:00
parent 9c82ecf059
commit 613c985210

View File

@ -7,7 +7,7 @@
Name: openssh Name: openssh
Version: 7.2p2 Version: 7.2p2
Release: 1mamba Release: 2mamba
Summary: OpenSSH free Secure Shell (SSH) implementation Summary: OpenSSH free Secure Shell (SSH) implementation
Group: Network/Security Group: Network/Security
Vendor: openmamba Vendor: openmamba
@ -175,8 +175,7 @@ rm -f %{buildroot}%{_datadir}/Ssh.bin
sed -i 's/#Protocol 2,1/Protocol 2/ sed -i 's/#Protocol 2,1/Protocol 2/
s/#\(UsePAM\).*/\1 yes/ s/#\(UsePAM\).*/\1 yes/
s/#X11Forwarding no/X11Forwarding yes/ s/#X11Forwarding no/X11Forwarding yes/
s/#\(UsePrivilegeSeparation yes\)/\1/ s/#\(UsePrivilegeSeparation yes\)/\1/' \
s/#\(AllowTcpForwarding\) .*/\1 no/' \
%{buildroot}%{_sysconfdir}/ssh/sshd_config %{buildroot}%{_sysconfdir}/ssh/sshd_config
echo "AcceptEnv LANG LC_*" >> %{buildroot}%{_sysconfdir}/ssh/sshd_config echo "AcceptEnv LANG LC_*" >> %{buildroot}%{_sysconfdir}/ssh/sshd_config
@ -213,8 +212,7 @@ if [ $1 -eq 1 ]; then
fi fi
if [ $1 -gt 1 ]; then if [ $1 -gt 1 ]; then
# update # update
sed -i 's/#\(AllowTcpForwarding\) .*/\1 no/ sed -i 's/#X11Forwarding no/X11Forwarding yes/' \
s/#X11Forwarding no/X11Forwarding yes/' \
%{_sysconfdir}/ssh/sshd_config %{_sysconfdir}/ssh/sshd_config
grep "AcceptEnv" %{_sysconfdir}/ssh/sshd_config >/dev/null || \ grep "AcceptEnv" %{_sysconfdir}/ssh/sshd_config >/dev/null || \
echo " AcceptEnv LANG LC_*" >> %{_sysconfdir}/ssh/sshd_config echo " AcceptEnv LANG LC_*" >> %{_sysconfdir}/ssh/sshd_config
@ -292,6 +290,9 @@ exit 0
%{_libexecdir}/openssh/ssh-askpass %{_libexecdir}/openssh/ssh-askpass
%changelog %changelog
* Fri Apr 08 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 7.2p2-2mamba
- don't disable AllowTcpForwarding anymore, leave default (=yes, for x2goserver)
* Thu Mar 10 2016 Automatic Build System <autodist@mambasoft.it> 7.2p2-1mamba * Thu Mar 10 2016 Automatic Build System <autodist@mambasoft.it> 7.2p2-1mamba
- automatic version update by autodist - automatic version update by autodist