Skip to content

Commit 1e6d131

Browse files
authored
Update selinux policy (#1540)
1 parent 8c0b649 commit 1e6d131

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

scripts/selinux/nginx_agent.pp

5.53 KB
Binary file not shown.

scripts/selinux/nginx_agent.te

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ require {
6565
type fixed_disk_device_t;
6666
type nvme_device_t;
6767
type udev_var_run_t;
68+
type cgroup_t;
6869
}
6970

7071
allow nginx_agent_t bin_t:file { execute execute_no_trans };
@@ -147,4 +148,8 @@ allow nginx_agent_t self:udp_socket { connect create getattr setopt };
147148
allow nginx_agent_t fixed_disk_device_t:blk_file getattr;
148149
allow nginx_agent_t nvme_device_t:blk_file getattr;
149150
allow nginx_agent_t udev_var_run_t:dir search;
150-
allow nginx_agent_t udev_var_run_t:file { getattr open read };
151+
allow nginx_agent_t udev_var_run_t:file { getattr open read };
152+
153+
#============= nginx_agent_t ==============
154+
allow nginx_agent_t cgroup_t:dir search;
155+
allow nginx_agent_t cgroup_t:file { open read };

0 commit comments

Comments
 (0)