diff options
author | Colin Watson <cjwatson@debian.org> | 2016-12-24 19:26:39 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-12-26 00:30:30 +0000 |
commit | de911c73504da8dd7d9bbaddcf0c0845dd6eb9a0 (patch) | |
tree | c1be675cab068c60f7461a67b396961227c9ae6d /debian/openssh-server.postrm | |
parent | 9477f029ee259b25daff503e02e6b011aea82ce3 (diff) | |
parent | af54c22db774b37a15df5e599d08a83d4bbe5079 (diff) |
Start handling /etc/ssh/sshd_config using ucf.
* Start handling /etc/ssh/sshd_config using ucf. The immediate motivation
for this is to deal with deprecations of options related to protocol 1,
but something like this has been needed for a long time (closes:
#419574, #848089):
- sshd_config is now a slightly-patched version of upstream's, and only
contains non-default settings (closes: #147201).
- I've included as many historical md5sums of default versions of
sshd_config as I could reconstruct from version control, but I'm sure
I've missed some.
- Explicitly synchronise the debconf database with the current
configuration file state in openssh-server.config, to ensure that the
PermitRootLogin setting is properly preserved.
- UsePrivilegeSeparation now defaults to the stronger "sandbox" rather
than "yes", per upstream.
Diffstat (limited to 'debian/openssh-server.postrm')
-rw-r--r-- | debian/openssh-server.postrm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/openssh-server.postrm b/debian/openssh-server.postrm index 88e28a91e..ff16e5619 100644 --- a/debian/openssh-server.postrm +++ b/debian/openssh-server.postrm | |||
@@ -14,7 +14,15 @@ case $1 in | |||
14 | rm -f /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub | 14 | rm -f /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub |
15 | rm -f /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key.pub | 15 | rm -f /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key.pub |
16 | rm -f /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_ed25519_key.pub | 16 | rm -f /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_ed25519_key.pub |
17 | rm -f /etc/ssh/sshd_config | 17 | for ext in .ucf-new .ucf-old .ucf-dist ""; do |
18 | rm -f "/etc/ssh/sshd_config$ext" | ||
19 | done | ||
20 | if which ucf >/dev/null 2>&1; then | ||
21 | ucf --purge /etc/ssh/sshd_config | ||
22 | fi | ||
23 | if which ucfr >/dev/null 2>&1; then | ||
24 | ucfr --purge openssh-server /etc/ssh/sshd_config | ||
25 | fi | ||
18 | rm -f /etc/ssh/sshd_not_to_be_run | 26 | rm -f /etc/ssh/sshd_not_to_be_run |
19 | rmdir --ignore-fail-on-non-empty /etc/ssh | 27 | rmdir --ignore-fail-on-non-empty /etc/ssh |
20 | 28 | ||