All of lore.kernel.org
 help / color / mirror / Atom feed
From: Craig.Grube@cobham.com (Craig Grube)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] puppet.patch - updated
Date: Sun, 06 Sep 2009 12:15:43 -0400	[thread overview]
Message-ID: <4AA3E02F.7040500@cobham.com> (raw)
In-Reply-To: <20090905093847.GB29896@notebook3.grift.internal>

I tested the policy and attached a modified version that mostly works. 
The main issue I encountered was puppetmaster's level of access to types 
puppet_var_run_t, puppet_var_lib_t, puppet_tmp_t were insufficient.  I 
replicated puppet's accesses for puppetmaster and it works.

There are still some AVCs being generated including these:

For puppetmaster:
	- Wants write, read, setattr to puppet_log_t files.

For puppet:
	- Appears to redirect output (not sure at this point if stderr or 
stdout) from system utilities to /dev/null which results in AVCs like this:

type=AVC msg=audit(1252178670.560:136): avc:  denied  { use } for 
pid=1694 comm="modprobe" path="/dev/null" dev=tmpfs ino=400 
scontext=system_u:system_r:insmod_t tcontext=system_u:system_r:puppet_t 
tclass=fd

I am seening these for insmod_t, ldconfig_t, initrc_t, and rpm_script_t. 
  I had a 'dontaudit domain puppet_t:fd use'  to squash these AVCs, 
which does not appear from my testing to negatively effect puppet.
	
Craig

Dominick Grift wrote:
> On Fri, Sep 04, 2009 at 08:24:16AM -0400, Craig Grube wrote:
> 
> I already made some modification to my own take of the policy. More modification are probably to follow.
> You can find my current (up-to-date) policy for puppet here:
> 
> http://82.197.205.60/~dgrift/stuff/modules/puppet/
> 
> Again, This policy is untested. there are likely errors left.
> 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: puppet.te
Url: http://oss.tresys.com/pipermail/refpolicy/attachments/20090906/fea51656/attachment.pl 

  reply	other threads:[~2009-09-06 16:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-04 12:24 [refpolicy] puppet.patch - updated Craig Grube
2009-09-04 13:53 ` Dominick Grift
2009-09-04 14:13 ` Dominick Grift
2009-09-05  9:01 ` Dominick Grift
2009-09-05  9:38 ` Dominick Grift
2009-09-06 16:15   ` Craig Grube [this message]
2009-09-06 16:23     ` Dominick Grift
2009-09-07 18:39       ` Craig Grube
2009-09-08 10:28         ` Dominick Grift
2009-09-08 23:23           ` Craig Grube
2009-09-09  9:07             ` Dominick Grift
2009-09-10 11:14               ` Craig Grube

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=4AA3E02F.7040500@cobham.com \
    --to=craig.grube@cobham.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.