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/1] Mount output should be writeable to puppet_tmp_t
Date: Mon, 26 Sep 2011 14:31:19 -0400	[thread overview]
Message-ID: <4E80C4F7.2030903@tresys.com> (raw)
In-Reply-To: <4E809D16.4040109@redhat.com>

On 09/26/11 11:41, Daniel J Walsh wrote:
> On 09/26/2011 11:11 AM, Dominick Grift wrote:
>> On Mon, 2011-09-26 at 11:01 -0400, Daniel J Walsh wrote:
>>> On 09/26/2011 10:22 AM, Sven Vermeulen wrote:
>>>> On Mon, Sep 26, 2011 at 09:12:59AM -0400, Daniel J Walsh
>>>> wrote:
>>>>> We usually go from permissive to unconfined when we try to
>>>>> spin off to beta.  But making puppet confined is probably a
>>>>> waste of time anyways, since it pretty much needs to be able
>>>>> to do anything.
>>>>
>>>> I disagree. Even powerful domains should be confined. I'd 
>>>> personally like to go even further and make sure that the
>>>> policy is flexible enough to deal with limited use - for
>>>> instance, if I use puppet only for ensuring mounts, then it
>>>> should not be able to reload selinux policies (or transition to
>>>> domains that can). Although we are definitely not there yet, I
>>>> believe that we should at least first see how confining puppet
>>>> goes.
>>>>
>>>> Once a more complete policy is found, we can see if this can
>>>> be segregated nicely.
>>>>
>>>> Furthermore, the puppet policy itself has most of its "power" 
>>>> through domain transitions, not through elevated privileges on
>>>> the puppet_t domain itself. Although remote command execution
>>>> is still exploitable through this, making puppet SELinux-aware
>>>> might help to reduce attacks there as well.
>>>>
>>> My point being that it is very difficult to make a policy for
>>> the masses that will work with a domain that can place files
>>> anywhere and even needs to be able to turn on and off SELinux.
>>> Setting booleans, file_context, policy modules, are all things
>>> that puppet does within the Fedora infrastructure.
> 
>> We arent (at least i am not) saying these domain cannot be
>> unconfined eventually. I am just saying it should be optional.
> 
>> That means that during rawhide we make these unconfined domain, 
>> permissive domains and use the reports to perfect the policy for
>> any scenario. then when rawhide gets branched we make it unconfined
>> again so that "the masses?? get an unconfined puppet. But if one
>> decides to remove the unconfined domains , puppet will still work
>> (atleast better than currently) because we kept perfecting policy
>> during the rawhide.
> 
> We are in violent agreement.

I think we should take a best effort approach to situations like this.  Based on my (albeit limited) perspective of puppet usage, its for managing system config.  So its primary features are managing config files and transitioning out to tighter domains, eg mount_t, etc) when possible, especially since its typically network facing.  I'm comfortable with the policy supporting this level of access.  Once you start (ab)using puppet to directly manage binaries, manage SELinux policy, relabel files, etc. you get to unconfined land, since you're imbuing puppet with a huge amount of trust and power.

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

  reply	other threads:[~2011-09-26 18:31 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-24 13:56 [refpolicy] [PATCH 1/1] Mount output should be writeable to puppet_tmp_t Sven Vermeulen
2011-09-24 15:18 ` Dominick Grift
2011-09-24 15:22   ` Dominick Grift
2011-09-26 13:12     ` Daniel J Walsh
2011-09-26 14:22       ` Sven Vermeulen
2011-09-26 15:01         ` Daniel J Walsh
2011-09-26 15:11           ` Dominick Grift
2011-09-26 15:41             ` Daniel J Walsh
2011-09-26 18:31               ` Christopher J. PeBenito [this message]
2011-09-26 19:36                 ` Matt Thode
2011-09-27 12:59                   ` Daniel J Walsh
2011-09-27 13:17                     ` Matt Thode
2011-09-27 13:29                     ` Christopher J. PeBenito
2011-09-27 14:58                       ` Daniel J Walsh
2011-09-27 15:57                         ` Christopher J. PeBenito
2011-09-27 16:37                         ` Dominick Grift
2011-09-27 18:06                           ` Daniel J Walsh
2011-09-27 16:40                       ` Sven Vermeulen
2011-09-27 18:03                         ` Daniel J Walsh

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=4E80C4F7.2030903@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.