diff options
Diffstat (limited to 'cloudinit/SshUtil.py')
-rw-r--r-- | cloudinit/SshUtil.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/SshUtil.py b/cloudinit/SshUtil.py index bc699a61..fdd3bb27 100644 --- a/cloudinit/SshUtil.py +++ b/cloudinit/SshUtil.py @@ -147,6 +147,7 @@ def setup_user_keys(keys, user, key_prefix, log=None): util.write_file(authorized_keys, content, 0600) os.chown(authorized_keys, pwent.pw_uid, pwent.pw_gid) + util.restorecon_if_possible(ssh_dir, recursive=True) os.umask(saved_umask) |