Skip to content

Commit 326cf7a

Browse files
committed
updates te
1 parent 55dc6f2 commit 326cf7a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

files/my-appprotect.te

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,21 @@ require {
3232
#============= audisp_t ==============
3333

3434
#!!!! WARNING: 'unlabeled_t' is a base type.
35-
#!!!! The file '/usr/sbin/sedispatch' is mislabeled on your system.
36-
#!!!! Fix with $ restorecon -R -v /usr/sbin/sedispatch
37-
allow audisp_t unlabeled_t:file execute_no_trans;
35+
#!!!! The file '/etc/ld.so.cache' is mislabeled on your system.
36+
#!!!! Fix with $ restorecon -R -v /etc/ld.so.cache
37+
allow audisp_t unlabeled_t:file { execute execute_no_trans getattr open };
3838

3939
#============= httpd_t ==============
4040
allow httpd_t faillog_t:file { open read };
4141

4242
#!!!! This avc is allowed in the current policy
4343
allow httpd_t http_cache_port_t:tcp_socket name_connect;
44+
allow httpd_t httpd_config_t:file write;
45+
allow httpd_t httpd_initrc_exec_t:sock_file write;
4446
allow httpd_t httpd_log_t:file write;
47+
allow httpd_t httpd_sys_rw_content_t:fifo_file { getattr ioctl open read write };
48+
allow httpd_t httpd_var_run_t:fifo_file { getattr ioctl open read write };
49+
allow httpd_t httpd_var_run_t:file { execute execute_no_trans };
4550

4651
#!!!! The file '/opt/app_protect/pipe/app_protect_plugin_socket' is mislabeled on your system.
4752
#!!!! Fix with $ restorecon -R -v /opt/app_protect/pipe/app_protect_plugin_socket
@@ -62,8 +67,8 @@ allow httpd_t self:passwd passwd;
6267
allow httpd_t systemd_logind_t:dbus send_msg;
6368

6469
#!!!! This avc is allowed in the current policy
65-
allow httpd_t unreserved_port_t:tcp_socket name_connect;
66-
allow httpd_t usr_t:dir create;
70+
allow httpd_t unreserved_port_t:tcp_socket { name_bind name_connect };
71+
allow httpd_t usr_t:dir { create rmdir };
6772

6873
#!!!! WARNING: 'usr_t' is a base type.
6974
allow httpd_t usr_t:file { create rename setattr unlink write };

0 commit comments

Comments
 (0)