]> git.ipfire.org Git - people/stevee/selinux-policy.git/commitdiff
Interface fixes
authorMiroslav Grepl <mgrepl@redhat.com>
Mon, 18 Jul 2011 06:24:38 +0000 (06:24 +0000)
committerMiroslav Grepl <mgrepl@redhat.com>
Mon, 18 Jul 2011 06:24:38 +0000 (06:24 +0000)
policy/modules/admin/shorewall.if
policy/modules/services/clamav.if
policy/modules/services/cups.if
policy/modules/services/ftp.if
policy/modules/services/matahari.if
policy/modules/services/ricci.if

index 7ed03a3ad38a272e6c27fd61bc5d034e374f444b..082f0c56cdb0de38e7c65933696c66968efbaebe 100644 (file)
@@ -55,44 +55,6 @@ interface(`shorewall_read_config',`
        read_files_pattern($1, shorewall_etc_t, shorewall_etc_t)
 ')
 
-#######################################
-## <summary>
-##     Read shorewall PID files.
-## </summary>
-## <param name="domain">
-##     <summary>
-##     Domain allowed access.
-##     </summary>
-## </param>
-#
-interface(`shorewall_read_pid_files',`
-       gen_require(`
-               type shorewall_var_run_t;
-       ')
-
-       files_search_pids($1)
-       read_files_pattern($1, shorewall_var_run_t, shorewall_var_run_t)
-')
-
-#######################################
-## <summary>
-##     Read and write shorewall PID files.
-## </summary>
-## <param name="domain">
-##     <summary>
-##     Domain allowed access.
-##     </summary>
-## </param>
-#
-interface(`shorewall_rw_pid_files',`
-       gen_require(`
-               type shorewall_var_run_t;
-       ')
-
-       files_search_pids($1)
-       rw_files_pattern($1, shorewall_var_run_t, shorewall_var_run_t)
-')
-
 ######################################
 ## <summary>
 ##      Read shorewall /var/lib files.
@@ -105,7 +67,7 @@ interface(`shorewall_rw_pid_files',`
 #
 interface(`shorewall_read_lib_files',`
         gen_require(`
-                type shorewall_t;
+                               type shorewall_var_lib_t;
        ')
 
         files_search_var_lib($1)
index 101824bdca8caa92aeb7ccf52f9dcb48ec1da4fa..9eb2461e479e75e4eb78ab8d266f144892aad3db 100644 (file)
@@ -50,12 +50,12 @@ interface(`clamav_stream_connect',`
 #
 interface(`clamav_append_log',`
        gen_require(`
-               type clamav_var_log_t;
+               type clamd_var_log_t;
        ')
 
        logging_search_logs($1)
-       allow $1 clamav_var_log_t:dir list_dir_perms;
-       append_files_pattern($1, clamav_var_log_t, clamav_var_log_t)
+       allow $1 clamd_var_log_t:dir list_dir_perms;
+       append_files_pattern($1, clamd_var_log_t, clamd_var_log_t)
 ')
 
 ########################################
index 777091a3d1faa992c948b574aa3257645e713532..173cd162d66bd2b897d60b1aeb17bf6b528d129a 100644 (file)
@@ -9,6 +9,11 @@
 ##     Domain allowed access.
 ##     </summary>
 ## </param>
+## <param name="entry_file">
+##  <summary>
+##  Domain allowed access.
+##  </summary>
+## </param>
 #
 interface(`cups_backend',`
        gen_require(`
index 21a7a733deb85c0c040f873f50f8f7445e6b9638..748cac555136b845e451f184380fc611c509260c 100644 (file)
@@ -32,10 +32,10 @@ interface(`ftp_domtrans',`
 #
 interface(`ftp_initrc_domtrans',`
     gen_require(`
-        type ftp_initrc_exec_t;
+        type ftpd_initrc_exec_t;
     ')
 
-    init_labeled_script_domtrans($1, ftp_initrc_exec_t)
+    init_labeled_script_domtrans($1, ftpd_initrc_exec_t)
 ')
 
 #######################################
index 9343f3fda04ece9771132121b3416cba0c2c2924..0432f2ee12fca9e0a28e22d64ab8764c178b49c6 100644 (file)
@@ -216,7 +216,7 @@ interface(`matahari_serviced_domtrans',`
 #
 interface(`matahari_admin',`
        gen_require(`
-               type matahari_inirc_exec_t;
+               type matahari_initrc_exec_t;
                type matahari_hostd_t;
                type matahari_netd_t;
                type matahari_serviced_t;
index 3128dd8dd0553d6415e61fd571cabec1d44d4c13..679d185cb9dc58702e1d0476dcd8f14365cf97a8 100644 (file)
@@ -123,11 +123,11 @@ interface(`ricci_stream_connect_modclusterd',`
 #
 interface(`ricci_rw_modclusterd_tmpfs_files',`
        gen_require(`
-               type ricci_modcluserd_tmpfs_t;
+               type ricci_modclusterd_tmpfs_t;
        ')
 
        fs_search_tmpfs($1)
-       allow $1 ricci_modcluserd_tmpfs_t:file rw_file_perms;
+       allow $1 ricci_modclusterd_tmpfs_t:file rw_file_perms;
 ')
 
 ########################################