The following patch fixes the SELinux context of SSH host keys when installed by the keep_ssh_host_keys snippet as suggested by Bill Peck.
--- snippets/keep_ssh_host_keys | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/snippets/keep_ssh_host_keys b/snippets/keep_ssh_host_keys index 1b44d32..9e55735 100644 --- a/snippets/keep_ssh_host_keys +++ b/snippets/keep_ssh_host_keys @@ -98,6 +98,9 @@ if [ "$keys_found" = "yes" ]; then sleep 10 if [ -d /mnt/sysimage$SEARCHDIR ] ; then cp -af /tmp/$TEMPDIR/${PATTERN}* /mnt/sysimage$SEARCHDIR + if [ -e "/sbin/restorecon"]; then + /sbin/restorecon -r /etc/ssh + fi logger "keys copied to newly installed system" break fi
On Wed, 16 Mar 2011 18:21:55 +0000, "Jonathan G. Underwood" jonathan.underwood@gmail.com wrote:
The following patch fixes the SELinux context of SSH host keys when installed by the keep_ssh_host_keys snippet as suggested by Bill Peck.
Applied, thanks.
cobbler-devel@lists.fedorahosted.org