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/5] couchdb: Add separate domain for couchjs
Date: Sat, 8 Feb 2014 09:44:01 -0500	[thread overview]
Message-ID: <52F642B1.7040001@tresys.com> (raw)
In-Reply-To: <1391254720-25899-2-git-send-email-aranea@aixah.de>

On 2/1/2014 6:38 AM, Luis Ressel wrote:
> couchjs requires 'execmem', which isn't neccessary for the rest of
> couchdb.
> ---
>  couchdb.fc |  1 +
>  couchdb.te | 18 +++++++++++++++++-
>  2 files changed, 18 insertions(+), 1 deletion(-)
> 
> diff --git a/couchdb.fc b/couchdb.fc
> index 7b63699..3fd740b 100644
> --- a/couchdb.fc
> +++ b/couchdb.fc
> @@ -2,6 +2,7 @@
>  
>  /etc/rc\.d/init\.d/couchdb	--	gen_context(system_u:object_r:couchdb_initrc_exec_t,s0)
>  
> +/usr/lib/couchdb/bin/couchjs	--	gen_context(system_u:object_r:couchdb_js_exec_t,s0)
>  /usr/lib/couchdb/erlang/lib/couch-[0-9.]+/priv/couchspawnkillable	--	gen_context(system_u:object_r:bin_t,s0)
>  
>  /usr/bin/couchdb	--	gen_context(system_u:object_r:couchdb_exec_t,s0)
> diff --git a/couchdb.te b/couchdb.te
> index 171ea6d..9481c02 100644
> --- a/couchdb.te
> +++ b/couchdb.te
> @@ -9,6 +9,10 @@ type couchdb_t;
>  type couchdb_exec_t;
>  init_daemon_domain(couchdb_t, couchdb_exec_t)
>  
> +type couchdb_js_t;
> +type couchdb_js_exec_t;
> +init_daemon_domain(couchdb_js_t, couchdb_js_exec_t)
> +
>  type couchdb_initrc_exec_t;
>  init_script_file(couchdb_initrc_exec_t)
>  
> @@ -30,7 +34,7 @@ init_daemon_run_dir(couchdb_var_run_t, "couchdb")
>  
>  ########################################
>  #
> -# Local policy
> +# couchdb policy
>  #
>  
>  allow couchdb_t self:process { getsched setsched signal signull sigkill };
> @@ -88,3 +92,15 @@ fs_getattr_xattr_fs(couchdb_t)
>  auth_use_nsswitch(couchdb_t)
>  
>  miscfiles_read_localization(couchdb_t)
> +
> +domtrans_pattern(couchdb_t, couchdb_js_exec_t, couchdb_js_t)

Moved this line up.  Otherwise merged.

> +########################################
> +#
> +# couchdb_js policy
> +#
> +
> +allow couchdb_js_t self:process { execmem getsched setsched };
> +
> +files_read_usr_files(couchdb_js_t)
> +miscfiles_read_localization(couchdb_js_t)
> 


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

  reply	other threads:[~2014-02-08 14:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-01 11:36 [refpolicy] Couchdb policy updates Luis Ressel
2014-02-01 11:36 ` [refpolicy] [PATCH] kernel/files.if: Add files_dontaudit_list_var interface Luis Ressel
2014-02-08 14:43   ` Christopher J. PeBenito
2014-02-01 11:38 ` [refpolicy] [PATCH 1/5] Minor updates to couchdb policy Luis Ressel
2014-02-01 11:38   ` [refpolicy] [PATCH 2/5] couchdb: Add separate domain for couchjs Luis Ressel
2014-02-08 14:44     ` Christopher J. PeBenito [this message]
2014-02-01 11:38   ` [refpolicy] [PATCH 3/5] couchdb: Dontaudit denials caused by Erlang's disksup Luis Ressel
2014-02-08 14:44     ` Christopher J. PeBenito
2014-02-01 11:38   ` [refpolicy] [PATCH 4/5] Reformat couchdb.fc Luis Ressel
2014-02-08 14:44     ` Christopher J. PeBenito
2014-02-01 11:38   ` [refpolicy] [PATCH 5/5] couchdb: Module version bump Luis Ressel
2014-02-08 14:43   ` [refpolicy] [PATCH 1/5] Minor updates to couchdb policy 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=52F642B1.7040001@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.