From a14d263c0052c9aef63b03d43e42c6c48bad8812 Mon Sep 17 00:00:00 2001 From: "Jan F. Chadima" Date: Tue, 30 Jun 2009 11:14:25 +0000 Subject: [PATCH] create '~/.ssh/known_hosts' within proper context --- openssh-5.2p1-selabel.patch | 12 ++++++++++++ openssh.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 openssh-5.2p1-selabel.patch diff --git a/openssh-5.2p1-selabel.patch b/openssh-5.2p1-selabel.patch new file mode 100644 index 0000000..cb9d1da --- /dev/null +++ b/openssh-5.2p1-selabel.patch @@ -0,0 +1,12 @@ +diff -up openssh-5.2p1/contrib/ssh-copy-id.selabel openssh-5.2p1/contrib/ssh-copy-id +--- openssh-5.2p1/contrib/ssh-copy-id.selabel 2009-06-29 23:43:03.514390092 +0200 ++++ openssh-5.2p1/contrib/ssh-copy-id 2009-06-29 23:44:11.188382120 +0200 +@@ -38,7 +38,7 @@ if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || + exit 1 + fi + +-{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1 ++{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys; test -x /sbin/restorecon && /sbin/restorecon .ssh .ssh/authorized_keys" || exit 1 + + cat < - 5.2p1-11 +- create '~/.ssh/known_hosts' within proper context + * Tue Jun 23 2009 Jan F. Chadima - 5.2p1-4 - repair broken ls in chroot %%h