All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 2/2] postgresql: use init_startstop_service in _admin interface
Date: Wed, 27 May 2015 14:51:21 -0400	[thread overview]
Message-ID: <55661229.8020202@tresys.com> (raw)
In-Reply-To: <1432546436-17885-2-git-send-email-jason@perfinion.com>

On 5/25/2015 5:33 AM, Jason Zaman wrote:
> 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.

Merged.


> ---
>  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 9d2f311..60395e7 100644
> --- a/policy/modules/services/postgresql.if
> +++ b/policy/modules/services/postgresql.if
> @@ -577,10 +577,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)
>  
> 


-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

  reply	other threads:[~2015-05-27 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25  9:33 [refpolicy] [PATCH 1/2] logging: use init_startstop_service in _admin interface Jason Zaman
2015-05-25  9:33 ` [refpolicy] [PATCH 2/2] postgresql: " Jason Zaman
2015-05-27 18:51   ` Christopher J. PeBenito [this message]
2015-05-27 18:51 ` [refpolicy] [PATCH 1/2] logging: " Christopher J. PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55661229.8020202@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.