Bläddra i källkod

ttrss: add shell execution permissions

Helmut Pozimski 4 år sedan
förälder
incheckning
3e907be09e
1 ändrade filer med 12 tillägg och 1 borttagningar
  1. 12 1
      ttrss.te

+ 12 - 1
ttrss.te

@@ -1,4 +1,10 @@
-policy_module(ttrss, 0.0.3)
+policy_module(ttrss, 0.0.4)
+
+require {
+  type etc_t;
+  type httpd_sys_content_t;
+  type shell_exec_t;
+}
 
 ########################################
 #
@@ -40,6 +46,11 @@ miscfiles_read_localization(ttrss_t)
 mysql_tcp_connect(ttrss_t)
 mysql_stream_connect(ttrss_t)
 
+allow ttrss_t etc_t:file map;
+allow ttrss_t httpd_sys_content_t:file map;
+
+corecmd_exec_shell(ttrss_t)
+allow ttrss_t shell_exec_t:file map;
 optional_policy(`
         cron_system_entry(ttrss_t, ttrss_exec_t)
 ')