commit: 880e5bc49e6e08fb4f8e4732e6cdd5e1c05eba13
Author: Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Mon May 25 09:33:56 2015 +0000
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Wed May 27 18:59:50 2015 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=880e5bc4
postgresql: use init_startstop_service in _admin interface
The postgresql_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/services/postgresql.if | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/policy/modules/services/postgresql.if
b/policy/modules/services/postgresql.if
index 85d430f..11526b6 100644
--- a/policy/modules/services/postgresql.if
+++ b/policy/modules/services/postgresql.if
@@ -595,10 +595,7 @@ interface(`postgresql_admin',`
allow $1 postgresql_t:process { ptrace signal_perms };
ps_process_pattern($1, postgresql_t)
- init_labeled_script_domtrans($1, postgresql_initrc_exec_t)
- domain_system_change_exemption($1)
- role_transition $2 postgresql_initrc_exec_t system_r;
- allow $2 system_r;
+ init_startstop_service($1, $2, postgresql_t, postgresql_initrc_exec_t)
admin_pattern($1, postgresql_var_run_t)