Skip to content
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.
31 changes: 28 additions & 3 deletions scripts/selinux/nginx_agent.te
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ require {
type auditd_t;
type sysfs_t;
type unconfined_service_t;
type container_runtime_t;
type system_dbusd_t;
type tuned_t;
type irqbalance_t;
Expand Down Expand Up @@ -108,8 +107,6 @@ allow nginx_agent_t auditd_t:dir { getattr search };
allow nginx_agent_t auditd_t:file { getattr open read };
allow nginx_agent_t chronyd_t:dir { getattr search };
allow nginx_agent_t chronyd_t:file { getattr open read };
allow nginx_agent_t container_runtime_t:dir { getattr search };
allow nginx_agent_t container_runtime_t:file { getattr open read };
allow nginx_agent_t crond_t:dir { getattr search };
allow nginx_agent_t dhcpc_t:file { getattr open read };
allow nginx_agent_t fs_t:filesystem getattr;
Expand Down Expand Up @@ -383,3 +380,31 @@ require {

#============= nginx_agent_t ==============
allow nginx_agent_t rpm_t:file read;

require {
type nginx_agent_t;
}

#============= nginx_agent_t ==============
apache_list_cache(nginx_agent_t)
rng_systemctl_rngd(nginx_agent_t)
userdom_manage_user_home_content_dirs(nginx_agent_t)

require {
type rpm_t;
type nginx_agent_t;
class file open;
}

#============= nginx_agent_t ==============
allow nginx_agent_t rpm_t:file open;
corenet_tcp_bind_http_cache_port(nginx_agent_t)
rng_systemctl_rngd(nginx_agent_t)
userdom_manage_user_home_content_dirs(nginx_agent_t)

require {
type nginx_agent_t;
}

#============= nginx_agent_t ==============
files_rw_etc_files(nginx_agent_t)