From 9a9686161e56abfc60d98170a81c905bf2c244df Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 14 Feb 2014 12:17:28 +0100 Subject: [PATCH] Use the ssh_home_t SELinux context for ~git/.ssh --- files/gitlab-cookbooks/gitlab/recipes/gitlab-shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/gitlab-cookbooks/gitlab/recipes/gitlab-shell.rb b/files/gitlab-cookbooks/gitlab/recipes/gitlab-shell.rb index 4a915fd..d8b3f09 100644 --- a/files/gitlab-cookbooks/gitlab/recipes/gitlab-shell.rb +++ b/files/gitlab-cookbooks/gitlab/recipes/gitlab-shell.rb @@ -40,7 +40,7 @@ end # If SELinux is enabled, make sure that OpenSSH thinks the .ssh directory of the # git_user is valid. -execute "chcon -t user_home_t #{ssh_dir}" do +execute "chcon -t ssh_home_t #{ssh_dir}" do only_if "id -Z" end -- libgit2 0.21.2