Commit 9a9686161e56abfc60d98170a81c905bf2c244df
1 parent
da017f4f
Exists in
master
and in
17 other branches
Use the ssh_home_t SELinux context for ~git/.ssh
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/recipes/gitlab-shell.rb
@@ -40,7 +40,7 @@ end | @@ -40,7 +40,7 @@ end | ||
40 | 40 | ||
41 | # If SELinux is enabled, make sure that OpenSSH thinks the .ssh directory of the | 41 | # If SELinux is enabled, make sure that OpenSSH thinks the .ssh directory of the |
42 | # git_user is valid. | 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 | only_if "id -Z" | 44 | only_if "id -Z" |
45 | end | 45 | end |
46 | 46 |