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 1/5] Minor updates to couchdb policy
Date: Sat, 8 Feb 2014 09:43:49 -0500	[thread overview]
Message-ID: <52F642A5.2090009@tresys.com> (raw)
In-Reply-To: <1391254720-25899-1-git-send-email-aranea@aixah.de>

On 2/1/2014 6:38 AM, Luis Ressel wrote:
> ---
>  couchdb.fc | 2 ++
>  couchdb.te | 4 +++-
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/couchdb.fc b/couchdb.fc
> index c086302..7b63699 100644
> --- a/couchdb.fc
> +++ b/couchdb.fc
> @@ -2,6 +2,8 @@
>  
>  /etc/rc\.d/init\.d/couchdb	--	gen_context(system_u:object_r:couchdb_initrc_exec_t,s0)
>  
> +/usr/lib/couchdb/erlang/lib/couch-[0-9.]+/priv/couchspawnkillable	--	gen_context(system_u:object_r:bin_t,s0)

I moved this to corecommands.  Otherwise merged.

>  /usr/bin/couchdb	--	gen_context(system_u:object_r:couchdb_exec_t,s0)
>  
>  /var/lib/couchdb(/.*)?	gen_context(system_u:object_r:couchdb_var_lib_t,s0)
> diff --git a/couchdb.te b/couchdb.te
> index ae1c1b1..171ea6d 100644
> --- a/couchdb.te
> +++ b/couchdb.te
> @@ -26,13 +26,14 @@ files_type(couchdb_var_lib_t)
>  
>  type couchdb_var_run_t;
>  files_pid_file(couchdb_var_run_t)
> +init_daemon_run_dir(couchdb_var_run_t, "couchdb")
>  
>  ########################################
>  #
>  # Local policy
>  #
>  
> -allow couchdb_t self:process { setsched signal signull sigkill };
> +allow couchdb_t self:process { getsched setsched signal signull sigkill };
>  allow couchdb_t self:fifo_file rw_fifo_file_perms;
>  allow couchdb_t self:unix_stream_socket create_stream_socket_perms;
>  allow couchdb_t self:tcp_socket { accept listen };
> @@ -70,6 +71,7 @@ corenet_all_recvfrom_netlabel(couchdb_t)
>  corenet_tcp_sendrecv_generic_if(couchdb_t)
>  corenet_tcp_sendrecv_generic_node(couchdb_t)
>  corenet_tcp_bind_generic_node(couchdb_t)
> +corenet_udp_bind_generic_node(couchdb_t)
>  
>  corenet_sendrecv_couchdb_server_packets(couchdb_t)
>  corenet_tcp_bind_couchdb_port(couchdb_t)
> 


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

      parent reply	other threads:[~2014-02-08 14:43 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
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   ` Christopher J. PeBenito [this message]

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=52F642A5.2090009@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.