From 25824d2007e062f32a7bf3c502eaf9b8f2bf4c15 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Sun, 30 Oct 2011 17:17:03 -0400 Subject: Restore created files' selinux contexts This adds a restorecon_if_possible method which uses selinux python module, and uses that for files modified in /etc. taken from git://pkgs.fedoraproject.org/cloud-init.git commit 87f33190f43d2b26cced4597e7298835024466c2 Author: Garrett Holmstrom Patch3: cloud-init-0.6.2-filecontext.patch --- cloudinit/CloudConfig/cc_ssh.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cloudinit/CloudConfig/cc_ssh.py') diff --git a/cloudinit/CloudConfig/cc_ssh.py b/cloudinit/CloudConfig/cc_ssh.py index 50b6a73c..727fd398 100644 --- a/cloudinit/CloudConfig/cc_ssh.py +++ b/cloudinit/CloudConfig/cc_ssh.py @@ -66,6 +66,8 @@ def handle(name,cfg,cloud,log,args): genkeys+='ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -t ecdsa -N ""; ' subprocess.call(('sh', '-c', "{ %s }