commit:     0897e2ba7152ef4752b2fb292fe9bde72b88b465
Author:     Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Mon Feb  9 09:20:21 2015 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Mon Feb  9 09:54:18 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0897e2ba

add back the working parts of commit fe62598f2fb87

---
 policy/modules/system/init.if | 74 ++++++++++++++++++++++---------------------
 1 file changed, 38 insertions(+), 36 deletions(-)

diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if
index 7cdf3a8..1f897d2 100644
--- a/policy/modules/system/init.if
+++ b/policy/modules/system/init.if
@@ -150,39 +150,6 @@ interface(`init_ranged_domain',`
 
 ########################################
 ## <summary>
-##     Mark the file type as a daemon pid file, allowing initrc_t
-##     to create it
-## </summary>
-## <param name="filetype">
-##     <summary>
-##     Type to mark as a daemon pid file
-##     </summary>
-## </param>
-## <param name="class">
-##     <summary>
-##     Class on which the type is applied
-##     </summary>
-## </param>
-## <param name="filename">
-##     <summary>
-##     Filename of the file that the init script creates
-##     </summary>
-## </param>
-#
-interface(`init_daemon_pid_file',`
-       gen_require(`
-               attribute daemonpidfile;
-               type initrc_t;
-       ')
-
-       typeattribute $1 daemonpidfile;
-
-       files_pid_file($1)
-       files_pid_filetrans(initrc_t, $1, $2, $3)
-')
-
-########################################
-## <summary>
 ##     Create a domain for long running processes
 ##     (daemons/services) which are started by init scripts.
 ## </summary>
@@ -421,16 +388,50 @@ interface(`init_ranged_system_domain',`
 
 ########################################
 ## <summary>
-##     Mark the type as a daemon run dir
+##     Mark the file type as a daemon pid file, allowing initrc_t
+##     to create it
 ## </summary>
-## <param name="rundirtype">
+## <param name="filetype">
+##     <summary>
+##     Type to mark as a daemon pid file
+##     </summary>
+## </param>
+## <param name="class">
+##     <summary>
+##     Class on which the type is applied
+##     </summary>
+## </param>
+## <param name="filename">
+##     <summary>
+##     Filename of the file that the init script creates
+##     </summary>
+## </param>
+#
+interface(`init_daemon_pid_file',`
+       gen_require(`
+               attribute daemonpidfile;
+               type initrc_t;
+       ')
+
+       typeattribute $1 daemonpidfile;
+
+       files_pid_file($1)
+       files_pid_filetrans(initrc_t, $1, $2, $3)
+')
+
+########################################
+## <summary>
+##     Mark the file type as a daemon run dir, allowing initrc_t
+##     to create it
+## </summary>
+## <param name="filetype">
 ##     <summary>
 ##     Type to mark as a daemon run dir
 ##     </summary>
 ## </param>
 ## <param name="filename">
 ##     <summary>
-##     Name of the run dir directory
+##     Filename of the directory that the init script creates
 ##     </summary>
 ## </param>
 #
@@ -882,6 +883,7 @@ interface(`init_domtrans_script',`
                gen_require(`
                        type rc_exec_t;
                ')
+
                domtrans_pattern($1, rc_exec_t, initrc_t)
        ')
 ')

Reply via email to