All of lore.kernel.org
 help / color / mirror / Atom feed
From: dE <de.techno@gmail.com>
To: selinux@tycho.nsa.gov
Subject: Re: Why is SELINUXTYPE policy specific?
Date: Tue, 22 Apr 2014 10:33:25 +0530	[thread overview]
Message-ID: <5355F81D.5010402@gmail.com> (raw)
In-Reply-To: <535530EB.6010909@tycho.nsa.gov>

On 04/21/14 20:23, Stephen Smalley wrote:
> On 04/20/2014 08:23 AM, dE wrote:
>> There are 3 security models in which SELinux can work -- TE, RBAC and MLS.
>>
>> And there are 6 types of SELinux policies --
>>
>> targeted, mls, mcs, standard, strict or minimum.
>>
>> Each security model requires it's own set of policies and the policies
>> can be 1 of the 6 types. So can all the 3 security modles and 6 types be
>> intermixed? Won't there be conflicts like with MLS and RBAC?
> The SELinux security server implements a hybrid RBAC/TE model (not
> optional, always present) and an optional MLS model (can be enabled
> alongside the RBAC/TE model, not as a substitute for it).  The MLS model
> in fact relies upon the RBAC/TE model to serve certain functions such as
> identifying, protecting, and limiting MLS trusted subjects (based on
> their domain).
>
> SELINUXTYPE in /etc/selinux/config is just a means of specifying the
> name/location of the policy to be loaded.  It was originally for Red Hat
> to allow them to support selection among multiple policy packages that
> could all potentially be installed on the filesystem.  An alternate
> implementation could have just used a symlink or just make the policy
> packages conflict with each other so that only one could be installed at
> a time.  The name conventionally suggests the kind of policy but there
> is no intrinsic meaning to it.
>
> Modern refpolicy build.conf has a TYPE that selects the kind of policy
> to be built (standard == RBAC/TE only, mls == enable MLS and use the MLS
> configuration, mcs == enable MLS and use the MCS configuration), and a
> NAME that names the install location for the policy (which can be
> anything and corresponds to the SELINUXTYPE of /etc/selinux/config).
>
> The optional MLS model in the security server is in fact enabled in all
> of the policy types in Fedora (any supported version) and RHEL 5 or
> later, but used to implement Red Hat's MCS model in the targeted policy
> (or any other policy type other than the mls one).  So targeted policy
> in Fedora or RHEL corresponds to TYPE=mcs NAME=targeted in refpolicy
> build.conf, while mls policy in Fedora or RHEL corresponds to TYPE=mls
> NAME=mls in refpolicy build.conf.  standard is not used in Fedora or
> RHEL AFAIK.  strict is no longer a separate policy in modern Fedora or
> RHEL (>= 6?) because targeted and strict policies converged together and
> strict policy can be achieved by mapping users to confined roles via
> semanage on targeted policy and optionally by removing unconfined
> entirely.  minimum is TYPE=mcs NAME=minimum and just differs in that it
> has a different set of policy modules included in it.

So in most distros, SELINUXTYPE specifies the security model.

  reply	other threads:[~2014-04-22  5:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-20 12:23 Why is SELINUXTYPE policy specific? dE
2014-04-21  8:01 ` Sven Vermeulen
2014-04-22  4:59   ` dE
2014-04-22 12:53     ` Stephen Smalley
2014-04-26  7:06       ` dE
2014-04-26 14:17         ` Dominick Grift
2014-04-27  8:26           ` dE
2014-04-21 14:53 ` Stephen Smalley
2014-04-22  5:03   ` dE [this message]
2014-04-22 12:33     ` Stephen Smalley

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=5355F81D.5010402@gmail.com \
    --to=de.techno@gmail.com \
    --cc=selinux@tycho.nsa.gov \
    /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.