Browse Source

apache_additional: fix init script context

Helmut Pozimski 4 years ago
parent
commit
1e64a3a1d8
2 changed files with 3 additions and 1 deletions
  1. 1 0
      apache_additional.fc
  2. 2 1
      apache_additional.te

+ 1 - 0
apache_additional.fc

@@ -0,0 +1 @@
+/etc/rc\.d/init\.d/apache2                             --      gen_context(system_u:object_r:httpd_initrc_exec_t,s0)

+ 2 - 1
apache_additional.te

@@ -1,9 +1,10 @@
-policy_module(apache_additional, 0.0.3)
+policy_module(apache_additional, 0.0.4)
 
 require {
   type httpd_t;
   type usr_t;
   type httpd_sys_content_t;
+  type httpd_initrc_exec_t;
 }
 
 apache_manage_sys_content(httpd_t)