Skip to content

Commit

Permalink
Fix selinux policy on RHEL 8 (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley committed Jul 21, 2023
1 parent 06e9952 commit b7ad9e1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
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)

0 comments on commit b7ad9e1

Please sign in to comment.