cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi...@apache.org
Subject [07/51] [abbrv] git commit: updated refs/heads/object_store to 9aec9c6
Date Thu, 20 Jun 2013 01:17:28 GMT
CLOUDSTACK-3054 - Have ssh key initscript handle SELinux permissions


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/779763fd
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/779763fd
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/779763fd

Branch: refs/heads/object_store
Commit: 779763fdfd34c00f19481d88c6cccb1edf8bf532
Parents: 10e80af
Author: Ian Service <iservice@ts2.ca>
Authored: Tue Jun 18 10:39:31 2013 -0400
Committer: David Nalley <david@gnsa.us>
Committed: Tue Jun 18 10:39:31 2013 -0400

----------------------------------------------------------------------
 setup/bindir/cloud-set-guest-sshkey.in | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/779763fd/setup/bindir/cloud-set-guest-sshkey.in
----------------------------------------------------------------------
diff --git a/setup/bindir/cloud-set-guest-sshkey.in b/setup/bindir/cloud-set-guest-sshkey.in
index 15008b8..f3f02b1 100755
--- a/setup/bindir/cloud-set-guest-sshkey.in
+++ b/setup/bindir/cloud-set-guest-sshkey.in
@@ -71,6 +71,7 @@ fi
 homedir=$(grep ^$user /etc/passwd|awk -F ":" '{print $6}')
 sshdir=$homedir/.ssh
 authorized=$sshdir/authorized_keys
+restorecon=/sbin/restorecon
 
 
 if [ ! -e $sshdir ]
@@ -86,6 +87,10 @@ fi
 cat $authorized|grep -v "$publickey" > $authorized
 echo "$publickey" >> $authorized
 
+if [ -e $restorecon ]
+then
+    $restorecon -R -v $sshdir
+fi
 
 exit 0
 


Mime
View raw message