don't disable AllowTcpForwarding anymore, leave default (=yes, for x2goserver) [release 7.2p2-2mamba;Fri Apr 08 2016]
This commit is contained in:
parent
9c82ecf059
commit
613c985210
11
openssh.spec
11
openssh.spec
@ -7,7 +7,7 @@
|
||||
|
||||
Name: openssh
|
||||
Version: 7.2p2
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: OpenSSH free Secure Shell (SSH) implementation
|
||||
Group: Network/Security
|
||||
Vendor: openmamba
|
||||
@ -175,8 +175,7 @@ rm -f %{buildroot}%{_datadir}/Ssh.bin
|
||||
sed -i 's/#Protocol 2,1/Protocol 2/
|
||||
s/#\(UsePAM\).*/\1 yes/
|
||||
s/#X11Forwarding no/X11Forwarding yes/
|
||||
s/#\(UsePrivilegeSeparation yes\)/\1/
|
||||
s/#\(AllowTcpForwarding\) .*/\1 no/' \
|
||||
s/#\(UsePrivilegeSeparation yes\)/\1/' \
|
||||
%{buildroot}%{_sysconfdir}/ssh/sshd_config
|
||||
|
||||
echo "AcceptEnv LANG LC_*" >> %{buildroot}%{_sysconfdir}/ssh/sshd_config
|
||||
@ -213,8 +212,7 @@ if [ $1 -eq 1 ]; then
|
||||
fi
|
||||
if [ $1 -gt 1 ]; then
|
||||
# update
|
||||
sed -i 's/#\(AllowTcpForwarding\) .*/\1 no/
|
||||
s/#X11Forwarding no/X11Forwarding yes/' \
|
||||
sed -i 's/#X11Forwarding no/X11Forwarding yes/' \
|
||||
%{_sysconfdir}/ssh/sshd_config
|
||||
grep "AcceptEnv" %{_sysconfdir}/ssh/sshd_config >/dev/null || \
|
||||
echo " AcceptEnv LANG LC_*" >> %{_sysconfdir}/ssh/sshd_config
|
||||
@ -292,6 +290,9 @@ exit 0
|
||||
%{_libexecdir}/openssh/ssh-askpass
|
||||
|
||||
%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
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user