All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Hurd <thurd@tresys.com>
To: <selinux@tycho.nsa.gov>
Subject: Re: MCS error
Date: Thu, 19 Feb 2015 16:26:55 -0500	[thread overview]
Message-ID: <54E6551F.9040204@tresys.com> (raw)
In-Reply-To: <20150219204841.GA1649@linksys-wireless-usb.network2>

On 02/19/2015 03:48 PM, Dominick Grift wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On Thu, Feb 19, 2015 at 11:33:37AM -0800, Tracy Reed wrote:
>> On Thu, Feb 19, 2015 at 07:40:48AM PST, Dominick Grift spake thusly:
>>> The MCS implementation has been changed a bit over the years on the policy side.
>> Is there a RHEL 6 version of the link I pasted below with up to date info?
>> Lack of documentation and frequent changes rendering documentation obsolete
>> combined with the inherent complexity of something like this are the main
>> issues holding back SELinux adoption.
>>
>>> Back in the earlier day's MCS was enforced on all proceses in redhat distro's by default
>> Yeah...I actually had it working in a test setup in RHEL 5 but never got it
>> deployed widely. Now we are trying to redo it with RHEl 6 and running into
>> issues.
>>
>>> Nowaday's that is no longer the case, and you need to opt-in for it by associating the mcs_constrained_type type attribute with the type of the process to constrain.
>>>
>>> In rhel6 this attribute name does not exist i suspect. It was renamed to aforementioned later.
>>>
>>> A seinfo -a | grep mcs might reveal the type attribute used for the same in RHEL6. (i think its something with trusted or untrusted, dunno for sure)
>> I don't follow this part... The seinfo output is:
>>
>> # seinfo -a | grep mcs
>> mcssetcats
>> mcswriteall
>> mcskillall
>> mcsreadall
>> mcsnetwrite
>> mcsuntrustedproc
>> mcsptraceall
>>
>> How do these type attributes relate to MCS?
> The mcstrustedproc type attribute makes a specified domain type mcs constrained.
>
> You can associate the attribute with a domain with the type_attribute statement:
>
> type_attribute type attribute
The typeattribute statement doesn't have an underscore. typeattribute 
and typealias don't have underscores but type_transition, type_member, 
and type_change do.
>
> so something like this (where the type associated with the app to constrain is "bla_t"
>
> sudo yum install selinux-policy-devel
>
> cat >> mytest.te <<EOF
> policy_module(mytest, 1.0,0)
> gen_require(` type bla_t; attribute mcsuntrustedproc; ')
> type_attribute bla_t mcsuntrustedproc;
> EOF
>
> make -f /usr/share/selinux/devel/Makefile mytest.pp
>
> sudo semodule -i mytest.pp
>
>> -- 
>> Tracy Reed
>
>
>> _______________________________________________
>> Selinux mailing list
>> Selinux@tycho.nsa.gov
>> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
>> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.
>
> - -- 
> 02DFF788
> 4D30 903A 1CF3 B756 FB48  1514 3148 83A2 02DF F788
> http://keys.gnupg.net/pks/lookup?op=vindex&search=0x314883A202DFF788
> Dominick Grift
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQGcBAEBCgAGBQJU5kwkAAoJENAR6kfG5xmcrwMMAMrUlM9elnpcPcJ2TvQgesNz
> Zfg1RjnjUXiQdkSOWWcv1Kfw8Nwt9ZbGVlReD6o4OuTtIBI5MJ+QlsquFn8N9SGm
> GP/pnEGWI2QnVbEWaR0wBwX1Z8mLiaCBS68VG2Zwq9+SNRnIp3TYQxN72N5HigHa
> I0oIXNDeRENbTDebSCHd/0pTKlOBMGx+RJPPRiA4lCDRz++VQ7Fbl+8f9TM+1Apa
> Q3dxaolczTfhxiVd/CJkoDu0J7DxvUqTxjAqH/8+3Vu+XPsYWRxIWeoTpgdfWVSa
> fqvYVZy/OpHx+LrR/NW9x3fmuKDCZZs4FRudcgXawADdyg8P0yTclpST6F3vaSJu
> BqTSzV++vPwLUoMEwDty8mi40FeLS27JE3Y1gFTTQGxYohGoM+kefDe6+c3c1uEJ
> nlwPpHVOrvM07TFoANOH8ZneNNxguE6WmdetCBQoHDfhUi0saqeb5NBhYt0Q4bmN
> l1fhBsckrpbXKVlsLXDv7YlZUOnvPIDWovkp4B5lXg==
> =qW3j
> -----END PGP SIGNATURE-----
> _______________________________________________
> Selinux mailing list
> Selinux@tycho.nsa.gov
> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
> To get help, send an email containing "help" to Selinux-request@tycho.nsa.gov.

  reply	other threads:[~2015-02-19 21:27 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-19  1:48 MCS error Tracy Reed
2015-02-19 13:23 ` Stephen Smalley
2015-02-19 15:40   ` Dominick Grift
2015-02-19 19:33     ` Tracy Reed
2015-02-19 19:46       ` Stephen Smalley
2015-02-19 20:17         ` Tracy Reed
2015-02-19 20:27           ` Stephen Smalley
2015-02-19 21:14           ` Dominick Grift
2015-02-19 20:48       ` Dominick Grift
2015-02-19 21:26         ` Thomas Hurd [this message]
2015-02-20  0:34         ` Tracy Reed
2015-02-20  2:02           ` Tracy Reed
2015-02-20  7:33             ` Dominick Grift
2015-02-20 23:27               ` Tracy Reed
2015-02-20 23:38                 ` Joshua Brindle
2015-02-21 13:07                 ` Dominick Grift
2015-02-20 17:44             ` Stephen Smalley
2015-02-20 13:38           ` Stephen Smalley
2015-02-20 16:56             ` Tracy Reed
2015-02-20 17:08               ` Stephen Smalley
2015-02-20 17:33                 ` Stephen Smalley
2015-02-20 22:10                   ` Tracy Reed
2015-02-23 14:43                     ` Stephen Smalley
2015-02-20 22:07                 ` Tracy Reed
2015-02-19 16:19 ` Stephen Smalley
2015-02-19 19:58   ` Tracy Reed
2015-02-19 20:24     ` 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=54E6551F.9040204@tresys.com \
    --to=thurd@tresys.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.