summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/.git-dpm4
-rw-r--r--debian/changelog7
-rw-r--r--debian/openssh-server.postinst13
-rw-r--r--debian/patches/debian-config.patch36
4 files changed, 43 insertions, 17 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm
index c10ac230e..10768e918 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -1,6 +1,6 @@
1# see git-dpm(1) from git-dpm package 1# see git-dpm(1) from git-dpm package
2762c062828f5a8f6ed189ed6e44ad38fd92f8b36 244f0937b56758f662ff388d474213107e3290863
3762c062828f5a8f6ed189ed6e44ad38fd92f8b36 344f0937b56758f662ff388d474213107e3290863
4487bdb3a5ef6075887b830ccb8a0b14f6da78e93 4487bdb3a5ef6075887b830ccb8a0b14f6da78e93
5487bdb3a5ef6075887b830ccb8a0b14f6da78e93 5487bdb3a5ef6075887b830ccb8a0b14f6da78e93
6openssh_6.7p1.orig.tar.gz 6openssh_6.7p1.orig.tar.gz
diff --git a/debian/changelog b/debian/changelog
index 894f97b0f..18b08f984 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1openssh (1:6.7p1-4) UNRELEASED; urgency=medium
2
3 * Send/accept only specific known LC_* variables, rather than using a
4 wildcard (closes: #765633).
5
6 -- Colin Watson <cjwatson@debian.org> Thu, 06 Nov 2014 10:39:11 +0000
7
1openssh (1:6.7p1-3) unstable; urgency=medium 8openssh (1:6.7p1-3) unstable; urgency=medium
2 9
3 * Debconf translations: 10 * Debconf translations:
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index 5131b2647..12ccb4f76 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -147,6 +147,13 @@ update_server_key_bits() {
147} 147}
148 148
149 149
150update_accept_env() {
151 if [ "$(get_config_option AcceptEnv)" = 'LANG LC_*' ]; then
152 set_config_option AcceptEnv 'LANG LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL'
153 fi
154}
155
156
150create_sshdconfig() { 157create_sshdconfig() {
151 if [ -e /etc/ssh/sshd_config ] ; then 158 if [ -e /etc/ssh/sshd_config ] ; then
152 # Upgrade an existing sshd configuration. 159 # Upgrade an existing sshd configuration.
@@ -168,6 +175,10 @@ create_sshdconfig() {
168 update_server_key_bits 175 update_server_key_bits
169 fi 176 fi
170 177
178 if dpkg --compare-versions "$oldversion" lt 1:6.7p1-4; then
179 update_accept_env
180 fi
181
171 return 0 182 return 0
172 fi 183 fi
173 184
@@ -246,7 +257,7 @@ TCPKeepAlive yes
246#Banner /etc/issue.net 257#Banner /etc/issue.net
247 258
248# Allow client to pass locale environment variables 259# Allow client to pass locale environment variables
249AcceptEnv LANG LC_* 260AcceptEnv LANG LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL
250 261
251Subsystem sftp /usr/lib/openssh/sftp-server 262Subsystem sftp /usr/lib/openssh/sftp-server
252 263
diff --git a/debian/patches/debian-config.patch b/debian/patches/debian-config.patch
index 661d30ca8..f81d731f1 100644
--- a/debian/patches/debian-config.patch
+++ b/debian/patches/debian-config.patch
@@ -1,4 +1,4 @@
1From 762c062828f5a8f6ed189ed6e44ad38fd92f8b36 Mon Sep 17 00:00:00 2001 1From 44f0937b56758f662ff388d474213107e3290863 Mon Sep 17 00:00:00 2001
2From: Colin Watson <cjwatson@debian.org> 2From: Colin Watson <cjwatson@debian.org>
3Date: Sun, 9 Feb 2014 16:10:18 +0000 3Date: Sun, 9 Feb 2014 16:10:18 +0000
4Subject: Various Debian-specific configuration changes 4Subject: Various Debian-specific configuration changes
@@ -22,16 +22,16 @@ debian/openssh-server.postinst.
22 22
23Author: Russ Allbery <rra@debian.org> 23Author: Russ Allbery <rra@debian.org>
24Forwarded: not-needed 24Forwarded: not-needed
25Last-Update: 2014-02-12 25Last-Update: 2014-11-06
26 26
27Patch-Name: debian-config.patch 27Patch-Name: debian-config.patch
28--- 28---
29 readconf.c | 2 +- 29 readconf.c | 2 +-
30 ssh_config | 7 ++++++- 30 ssh_config | 7 ++++++-
31 ssh_config.5 | 19 ++++++++++++++++++- 31 ssh_config.5 | 23 ++++++++++++++++++++++-
32 sshd_config | 1 + 32 sshd_config | 1 +
33 sshd_config.5 | 25 +++++++++++++++++++++++++ 33 sshd_config.5 | 29 +++++++++++++++++++++++++++++
34 5 files changed, 51 insertions(+), 3 deletions(-) 34 5 files changed, 59 insertions(+), 3 deletions(-)
35 35
36diff --git a/readconf.c b/readconf.c 36diff --git a/readconf.c b/readconf.c
37index 0648867..29338b6 100644 37index 0648867..29338b6 100644
@@ -47,7 +47,7 @@ index 0648867..29338b6 100644
47 options->forward_x11_timeout = 1200; 47 options->forward_x11_timeout = 1200;
48 if (options->exit_on_forward_failure == -1) 48 if (options->exit_on_forward_failure == -1)
49diff --git a/ssh_config b/ssh_config 49diff --git a/ssh_config b/ssh_config
50index 228e5ab..c9386aa 100644 50index 228e5ab..91be1e7 100644
51--- a/ssh_config 51--- a/ssh_config
52+++ b/ssh_config 52+++ b/ssh_config
53@@ -17,9 +17,10 @@ 53@@ -17,9 +17,10 @@
@@ -66,15 +66,15 @@ index 228e5ab..c9386aa 100644
66 # VisualHostKey no 66 # VisualHostKey no
67 # ProxyCommand ssh -q -W %h:%p gateway.example.com 67 # ProxyCommand ssh -q -W %h:%p gateway.example.com
68 # RekeyLimit 1G 1h 68 # RekeyLimit 1G 1h
69+ SendEnv LANG LC_* 69+ SendEnv LANG LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL
70+ HashKnownHosts yes 70+ HashKnownHosts yes
71+ GSSAPIAuthentication yes 71+ GSSAPIAuthentication yes
72+ GSSAPIDelegateCredentials no 72+ GSSAPIDelegateCredentials no
73diff --git a/ssh_config.5 b/ssh_config.5 73diff --git a/ssh_config.5 b/ssh_config.5
74index a1005ba..da3c177 100644 74index a1005ba..5985769 100644
75--- a/ssh_config.5 75--- a/ssh_config.5
76+++ b/ssh_config.5 76+++ b/ssh_config.5
77@@ -71,6 +71,22 @@ Since the first obtained value for each parameter is used, more 77@@ -71,6 +71,26 @@ Since the first obtained value for each parameter is used, more
78 host-specific declarations should be given near the beginning of the 78 host-specific declarations should be given near the beginning of the
79 file, and general defaults at the end. 79 file, and general defaults at the end.
80 .Pp 80 .Pp
@@ -87,7 +87,11 @@ index a1005ba..da3c177 100644
87+.Pp 87+.Pp
88+.Bl -bullet -offset indent -compact 88+.Bl -bullet -offset indent -compact
89+.It 89+.It
90+.Cm SendEnv No LANG LC_* 90+.Cm SendEnv No LANG Xo
91+.No LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT
92+.No LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME
93+.No LC_ALL
94+.Xc
91+.It 95+.It
92+.Cm HashKnownHosts No yes 96+.Cm HashKnownHosts No yes
93+.It 97+.It
@@ -97,7 +101,7 @@ index a1005ba..da3c177 100644
97 The configuration file has the following format: 101 The configuration file has the following format:
98 .Pp 102 .Pp
99 Empty lines and lines starting with 103 Empty lines and lines starting with
100@@ -673,7 +689,8 @@ token used for the session will be set to expire after 20 minutes. 104@@ -673,7 +693,8 @@ token used for the session will be set to expire after 20 minutes.
101 Remote clients will be refused access after this time. 105 Remote clients will be refused access after this time.
102 .Pp 106 .Pp
103 The default is 107 The default is
@@ -120,10 +124,10 @@ index d9b8594..4db32f5 100644
120 #StrictModes yes 124 #StrictModes yes
121 #MaxAuthTries 6 125 #MaxAuthTries 6
122diff --git a/sshd_config.5 b/sshd_config.5 126diff --git a/sshd_config.5 b/sshd_config.5
123index 7396b23..7aa7b47 100644 127index 7396b23..09bb5fe 100644
124--- a/sshd_config.5 128--- a/sshd_config.5
125+++ b/sshd_config.5 129+++ b/sshd_config.5
126@@ -57,6 +57,31 @@ Arguments may optionally be enclosed in double quotes 130@@ -57,6 +57,35 @@ Arguments may optionally be enclosed in double quotes
127 .Pq \&" 131 .Pq \&"
128 in order to represent arguments containing spaces. 132 in order to represent arguments containing spaces.
129 .Pp 133 .Pp
@@ -145,7 +149,11 @@ index 7396b23..7aa7b47 100644
145+.It 149+.It
146+.Cm PrintMotd No no 150+.Cm PrintMotd No no
147+.It 151+.It
148+.Cm AcceptEnv No LANG LC_* 152+.Cm AcceptEnv No LANG Xo
153+.No LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT
154+.No LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME
155+.No LC_ALL
156+.Xc
149+.It 157+.It
150+.Cm Subsystem No sftp /usr/lib/openssh/sftp-server 158+.Cm Subsystem No sftp /usr/lib/openssh/sftp-server
151+.It 159+.It