diff options
author | Colin Watson <cjwatson@debian.org> | 2013-06-06 17:03:35 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-06-06 17:03:35 +0100 |
commit | 14ea37fce18d84aed1013f0094d8878e3d0a2f27 (patch) | |
tree | 942df9c883b77ee5aefa070ef5b8e67636d0af9c /debian/openssh-server.postinst | |
parent | 45630ef554d7d20601d9790bc1c0101675eb5e08 (diff) |
Set SELinux context on private host keys as well as public host keys
(closes: #687436).
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index 087a7125e..bec99f746 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -102,7 +102,7 @@ create_key() { | |||
102 | ssh-keygen -q -f "$file" -N '' "$@" | 102 | ssh-keygen -q -f "$file" -N '' "$@" |
103 | echo | 103 | echo |
104 | if which restorecon >/dev/null 2>&1; then | 104 | if which restorecon >/dev/null 2>&1; then |
105 | restorecon "$file.pub" | 105 | restorecon "$file" "$file.pub" |
106 | fi | 106 | fi |
107 | fi | 107 | fi |
108 | } | 108 | } |