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 v2 1/1] Add mls support for some db classes
Date: Thu, 28 Jan 2016 15:43:01 -0500	[thread overview]
Message-ID: <56AA7D55.8050607@tresys.com> (raw)
In-Reply-To: <1453926096-25051-1-git-send-email-mike.palmiotto@crunchydata.com>

On 1/27/2016 3:21 PM, Mike Palmiotto wrote:
> Mirror file/dir approach.
> 
> db objects which do not contain other objects at multiple levels are analogous
> to files:
> 	db_sequence
> 	db_view
> 	db_procedure
> 	db_language
> 	db_tuple
> 	db_blob
> 
> db objects which are capable of holding objects at multiple levels are
> analogous to dirs:
> 	db_database
> 	db_schema
> 	db_table
> 	db_column

Merged.



> ---
>  policy/mls | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/policy/mls b/policy/mls
> index 06e5106..70ed808 100644
> --- a/policy/mls
> +++ b/policy/mls
> @@ -763,13 +763,14 @@ mlsconstrain context contains
>  #
>  
>  # make sure these database classes are "single level"
> -mlsconstrain { db_database db_schema db_table db_sequence db_view db_procedure db_language db_column db_blob } { create relabelto }
> +mlsconstrain { db_sequence db_view db_procedure db_language db_blob } { create relabelto }
>  	( l2 eq h2 );
> +
>  mlsconstrain { db_tuple } { insert relabelto }
>  	( l2 eq h2 );
>  
>  # new database labels must be dominated by the relabeling subjects clearance
> -mlsconstrain { db_database db_schema db_table db_sequence db_view db_procedure db_language db_column db_tuple db_blob } { relabelto }
> +mlsconstrain { db_database db_schema db_table db_column } { relabelto }
>  	( h1 dom h2 );
>  
>  # the database "read" ops (note the check is dominance of the low level)
> @@ -833,7 +834,7 @@ mlsconstrain { db_tuple } { use select }
>  	 ( t1 == mlsdbread ) or
>  	 ( t2 == mlstrustedobject ));
>  
> -# the "single level" file "write" ops
> +# the "single level" database "write" ops
>  mlsconstrain { db_database } { create drop setattr relabelfrom install_module load_module set_param }
>  	(( l1 eq l2 ) or
>  	 (( t1 == mlsdbwritetoclr ) and ( h1 dom l2 ) and ( l1 domby l2 )) or
> 


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

      reply	other threads:[~2016-01-28 20:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 20:21 [refpolicy] [PATCH v2 1/1] Add mls support for some db classes Mike Palmiotto
2016-01-28 20: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=56AA7D55.8050607@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.