Skip to content
Snippets Groups Projects
Commit a77792ac authored by John Long's avatar John Long Committed by Robert Marshall
Browse files

Add selinux module for gitlab-shell

parent 12d1cf15
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -27,6 +27,12 @@ if RedhatHelper.system_is_rhel7? || RedhatHelper.system_is_rhel8?
not_if "getenforce | grep Disabled"
not_if "semodule -l | grep '^#{authorized_keys_module}\\s'"
end
gitlab_shell_module = 'gitlab-13.5.0-gitlab-shell'
execute "semodule -i /opt/gitlab/embedded/selinux/rhel/7/#{gitlab_shell_module}.pp" do
not_if "getenforce | grep Disabled"
not_if "semodule -l | grep '^#{gitlab_shell_module}\\s'"
end
end
 
# If SELinux is enabled, make sure that OpenSSH thinks the .ssh directory and authorized_keys file of the
Loading
Loading
File added
module gitlab-13.5.0-gitlab-shell 1.0;
require {
type var_log_t;
type var_t;
type sshd_t;
class sock_file write;
class file create;
}
#============= sshd_t ==============
allow sshd_t var_log_t:file create;
#!!!! WARNING: 'var_t' is a base type.
allow sshd_t var_t:sock_file write;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment