All of lore.kernel.org
 help / color / mirror / Atom feed
From: dominick.grift@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] SELinux Configuration
Date: Tue, 29 Oct 2013 22:53:21 +0100	[thread overview]
Message-ID: <1383083601.2980.31.camel@d30> (raw)
In-Reply-To: <001801ced4e9$30d13ad0$9273b070$@com>

On Tue, 2013-10-29 at 16:55 -0400, Gary Cliff wrote:

> Q1: Is 'mls' included in 'targeted'?  
> 

Strictly put: no ... , but

This kind of confusing but in the config file mls is referring to the
mls policy model. which is a different policy model than the targeted
policy model. So from that perspective, no, mls is not included with
targeted

However mls is also a security model, and in that case mls can be made
to be included with the targeted policy model, usually in the form of
mcs

yes that is confusing indeed. there is just a difference between policy
models and security models.

mls as a security model adds a security attribute (security level
security attribute, e.g. a fourth field to a selinux security context),
and that security attribute can be used to enforce confidentiality with
compartmentalization (full MLS), or just only compartmentalization (mls
security attribute used to only add compartmentalization (MCS).

Fedora for example ships its targeted policy model, with the mls
security model enabled in mcs mode ( adds additional
compartmentalization capabilities )

> 
> Q2: is only MLS protected in 'mls'?
> 

Not strictly but generally yes. (in the context of your question yes
probably)

In theory there is nothing stopping you from enforcing confidentiality,
with compartmentalization in a targeted policy, but it is not supported,
as it does not really make sense.

So recap:

in the config file mls is referring to the mls policy model, and
targeted is referring to the targeted policy model.

the mls policy model is by design not "targeted", but is "strict",
although you could implement the mls properties into a targeted policy.
(just add a unconfined domain to the mls policy model, and then you have
a "targeted mls" policy model... i guess (its not supported but possible
i think)

the targeted policy model can be built to support limited mls
capabilities ( this IS supported ), its called MCS, which is the MLS
security model without the capabilities to enforce confidentiality ,
e.g. only allow for additional compartmentalization capability using the
MLS security attributes

Fedora/RHEL have targeted policy with mcs enabled by default, but no one
has targeted policy with full mls enabled

it is kind of unfortunate that people decided to call the policy model
that uses full MLS, the mls policy model, the more because from a
security model perspective mls is referred to as a model to enforce
confidentiality with compartmentalization (full mls), as well as only
compartmentalization (mcs, aka semi mls)

I hope that this cleared things up a bit for you.. but i will not blame
you if it did not.. because its just confusing

Maybe someone else can explain it in simpler terms, and still give a
comprehensive answer

      reply	other threads:[~2013-10-29 21:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-29 20:55 [refpolicy] SELinux Configuration Gary Cliff
2013-10-29 21:53 ` Dominick Grift [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=1383083601.2980.31.camel@d30 \
    --to=dominick.grift@gmail.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.