summaryrefslogtreecommitdiff
path: root/debian/patches/sshd_config_newline_fix.patch
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2014-04-10 14:04:44 -0600
committerusd-importer <ubuntu-server@lists.ubuntu.com>2014-04-10 21:08:32 +0000
commita09fd19e86794f7898a30e1c09e0c3055b651134 (patch)
tree6bd49cf0a30ca05b5a77d6b9d7e1a4b77aa1b5dc /debian/patches/sshd_config_newline_fix.patch
parent75e067cb6f84d1834dea8aeab0722e9ffc651466 (diff)
downloadvyos-walinuxagent-a09fd19e86794f7898a30e1c09e0c3055b651134.tar.gz
vyos-walinuxagent-a09fd19e86794f7898a30e1c09e0c3055b651134.zip
Import patches-unapplied version 2.0.4-0ubuntu2 to ubuntu/trusty-proposed
Imported using git-ubuntu import. Changelog parent: 75e067cb6f84d1834dea8aeab0722e9ffc651466 New changelog entries: * Fix for broken sshd configuration (LP: #1305418) - Change modification of sshd_config to address lack of newline at EOF
Diffstat (limited to 'debian/patches/sshd_config_newline_fix.patch')
-rw-r--r--debian/patches/sshd_config_newline_fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/sshd_config_newline_fix.patch b/debian/patches/sshd_config_newline_fix.patch
new file mode 100644
index 0000000..a599c81
--- /dev/null
+++ b/debian/patches/sshd_config_newline_fix.patch
@@ -0,0 +1,22 @@
+Description: Fix for broken sshd configuration (LP: #1305418)
+ Change modification of sshd_config to address lack of newline at EOF.
+ Lack of newline resulted in appended config line on same line
+ as existing configuration option, breaking sshd_config.
+
+Author: Robert C Jennings <robert.jennings@canonical.com>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1305418
+---
+ waagent | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/waagent
++++ b/waagent
+@@ -3353,7 +3353,7 @@
+ # Disable RFC 4252 and RFC 4256 authentication schemes.
+ ReplaceFileContentsAtomic(filepath, "\n".join(filter(lambda a: not
+ (a.startswith("PasswordAuthentication") or a.startswith("ChallengeResponseAuthentication")),
+- GetFileContents(filepath).split('\n'))) + "PasswordAuthentication no\nChallengeResponseAuthentication no\n")
++ GetFileContents(filepath).split('\n'))) + "\nPasswordAuthentication no\nChallengeResponseAuthentication no\n")
+ Log("Disabled SSH password-based authentication methods.")
+ if self.AdminPassword != None:
+ MyDistro.changePass('root',self.AdminPassword)