rpms/openssh/F-11 openssh-5.2p1-selabel.patch, NONE, 1.1 openssh.spec, 1.142, 1.143

Jan F. Chadima jfch2222 at fedoraproject.org
Tue Jun 30 11:14:56 UTC 2009


Author: jfch2222

Update of /cvs/pkgs/rpms/openssh/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18039

Modified Files:
	openssh.spec 
Added Files:
	openssh-5.2p1-selabel.patch 
Log Message:
create '~/.ssh/known_hosts' within proper context


openssh-5.2p1-selabel.patch:

--- NEW FILE openssh-5.2p1-selabel.patch ---
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 <<EOF
 Now try logging into the machine, with "ssh '$1'", and check in:


Index: openssh.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openssh/F-11/openssh.spec,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -p -r1.142 -r1.143
--- openssh.spec	23 Jun 2009 18:21:38 -0000	1.142
+++ openssh.spec	30 Jun 2009 11:14:25 -0000	1.143
@@ -63,7 +63,7 @@
 Summary: An open source implementation of SSH protocol versions 1 and 2
 Name: openssh
 Version: 5.2p1
-Release: 4%{?dist}%{?rescue_rel}
+Release: 5%{?dist}%{?rescue_rel}
 URL: http://www.openssh.com/portable.html
 #Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
 #Source1: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.asc
@@ -98,6 +98,7 @@ Patch55: openssh-5.1p1-cloexec.patch
 Patch62: openssh-5.1p1-scp-manpage.patch
 Patch65: openssh-5.2p1-fips.patch
 Patch66: openssh-5.2p1-homechroot.patch
+Patch67: openssh-5.2p1-selabel.patch
 
 License: BSD
 Group: Applications/Internet
@@ -230,6 +231,7 @@ an X11 passphrase dialog for OpenSSH.
 %patch62 -p1 -b .manpage
 %patch65 -p1 -b .fips
 %patch66 -p1 -b .homechroot
+%patch67 -p1 -b .selabel
 
 autoreconf
 
@@ -474,6 +476,9 @@ fi
 %endif
 
 %changelog
+* Tue Jun 30 2009 Jan F. Chadima <jchadima at redhat.com> - 5.2p1-11
+- create '~/.ssh/known_hosts' within proper context
+
 * Tue Jun 23 2009 Jan F. Chadima <jchadima at redhat.com> - 5.2p1-4
 - repair broken ls in chroot %%h
 




More information about the fedora-extras-commits mailing list