Commit 9a9686161e56abfc60d98170a81c905bf2c244df

Authored by Jacob Vosmaer
1 parent da017f4f

Use the ssh_home_t SELinux context for ~git/.ssh

files/gitlab-cookbooks/gitlab/recipes/gitlab-shell.rb
... ... @@ -40,7 +40,7 @@ end
40 40  
41 41 # If SELinux is enabled, make sure that OpenSSH thinks the .ssh directory of the
42 42 # git_user is valid.
43   -execute "chcon -t user_home_t #{ssh_dir}" do
  43 +execute "chcon -t ssh_home_t #{ssh_dir}" do
44 44 only_if "id -Z"
45 45 end
46 46  
... ...