commit:     1943815a94454b541f37128cec20da4ed015970b
Author:     Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Sun May 24 12:04:00 2015 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Wed May 27 19:01:18 2015 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=1943815a

bitcoin: use init_startstop_service interface in _admin

The bitcoin_admin interfaces had rules for RedHat sysvinit. This
replaces them with the interface init_startstop_service which can
easily be changed for other init systems.

 policy/modules/contrib/bitcoin.if | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/policy/modules/contrib/bitcoin.if 
b/policy/modules/contrib/bitcoin.if
index 922bc7c..9c7ca8d 100644
--- a/policy/modules/contrib/bitcoin.if
+++ b/policy/modules/contrib/bitcoin.if
@@ -26,10 +26,7 @@ interface(`bitcoin_admin',`
        allow $1 bitcoin_t:process { ptrace signal_perms };
        ps_process_pattern($1, bitcoin_t)
 
-       init_labeled_script_domtrans($1, bitcoin_initrc_exec_t)
-       domain_system_change_exemption($1)
-       role_transition $2 bitcoin_initrc_exec_t system_r;
-       allow $2 system_r;
+       init_startstop_service($1, $2, bitcoin_t, bitcoin_initrc_exec_t)
 
        files_list_tmp($1)
        admin_pattern($1, bitcoin_tmp_t)

Reply via email to