Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/
Date: Wed, 27 May 2015 20:00:47
Message-Id: 1432753278.1943815a94454b541f37128cec20da4ed015970b.perfinion@gentoo
1 commit: 1943815a94454b541f37128cec20da4ed015970b
2 Author: Jason Zaman <jason <AT> perfinion <DOT> com>
3 AuthorDate: Sun May 24 12:04:00 2015 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Wed May 27 19:01:18 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=1943815a
7
8 bitcoin: use init_startstop_service interface in _admin
9
10 The bitcoin_admin interfaces had rules for RedHat sysvinit. This
11 replaces them with the interface init_startstop_service which can
12 easily be changed for other init systems.
13
14 policy/modules/contrib/bitcoin.if | 5 +----
15 1 file changed, 1 insertion(+), 4 deletions(-)
16
17 diff --git a/policy/modules/contrib/bitcoin.if b/policy/modules/contrib/bitcoin.if
18 index 922bc7c..9c7ca8d 100644
19 --- a/policy/modules/contrib/bitcoin.if
20 +++ b/policy/modules/contrib/bitcoin.if
21 @@ -26,10 +26,7 @@ interface(`bitcoin_admin',`
22 allow $1 bitcoin_t:process { ptrace signal_perms };
23 ps_process_pattern($1, bitcoin_t)
24
25 - init_labeled_script_domtrans($1, bitcoin_initrc_exec_t)
26 - domain_system_change_exemption($1)
27 - role_transition $2 bitcoin_initrc_exec_t system_r;
28 - allow $2 system_r;
29 + init_startstop_service($1, $2, bitcoin_t, bitcoin_initrc_exec_t)
30
31 files_list_tmp($1)
32 admin_pattern($1, bitcoin_tmp_t)