Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix selinux policy on RHEL 8 #409

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified scripts/selinux/nginx_agent.pp
Binary file not shown.
24 changes: 21 additions & 3 deletions scripts/selinux/nginx_agent.te
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,31 @@ require {
#============= nginx_agent_t ==============
files_rw_etc_files(nginx_agent_t)

require {
type nginx_agent_t;
}

#============= nginx_agent_t ==============
files_read_var_lib_files(nginx_agent_t)

require {
type nginx_agent_t;
type dosfs_t;
}

#============= nginx_agent_t ==============
files_manage_usr_files(nginx_agent_t)
files_read_var_lib_files(nginx_agent_t)
allow nginx_agent_t var_lib_t:file write;
allow nginx_agent_t dosfs_t:filesystem getattr;

require {
type nginx_agent_t;
}

#============= nginx_agent_t ==============
apache_manage_lib(nginx_agent_t)

require {
type nginx_agent_t;
}

#============= nginx_agent_t ==============
files_manage_mounttab(nginx_agent_t)