All of lore.kernel.org
 help / color / mirror / Atom feed
From: domg472@gmail.com (Dominick Grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] puppet.patch
Date: Thu, 27 Aug 2009 16:20:36 +0200	[thread overview]
Message-ID: <20090827142035.GA5997@notebook3.grift.internal> (raw)
In-Reply-To: <0BE19D42-8DB2-4D0A-993F-86B55A61C2E8@mimectl>

On Thu, Aug 27, 2009 at 09:24:00AM -0400, Grube, Craig wrote:
> I have no issues with most of the comments and will include those in an updated patch.  I do have a couple of questions about several comments.  
> 
> > It looks like you've designed this policy on RHEL5 or some older implementation of selinux-policy.
> 
> Correct.  Most of the work was done in Fedora Core 11.
> 
> > +interface(`puppet_run_semanage',`
> > should be:
> > is not allowed
> > # END
> > +interface(`puppet_run_setsebool',`
> > should be:
> > is not allowed
> > # END
> 
> The version of Puppet I'm working with relies on semanage and get/setsebool to manage client's SELinux configuration (i.e. load/unload policy modules, set booleans, etc.) Is the issue with the naming convention or is it preferred that Puppet not be able to manage client's SELinux configuration at all, or that the interfaces be moved into a policy module outside of the reference policy?

That shared policy is defined in the wrong module. puppet.if should only have shared policy where the puppet domains are target. in these interface the puppet domains arent the target. 

if i remember correct than these interfaces should go to seutils module instead (if similar interfaces arent available already there.) 
> > +interface(`puppet_init_scripts_domtrans',`
> > should be:
> > not allowed
> > # END
> 
> Same question as the previous one, is the issue with the naming convention or with the ability of Puppet to cycle system services? 
> 
> Puppet restarts system services after updating configuration files, installing new packages, etc. In the absence of the interface Puppet is either unable to cycle system services or cycled services run in the puppet domain instead of the domain intended for the particular service.  Not being able to cycle services would make Puppet not so usefu   
> 
> I had the interface contents in puppet.te, but moved them into an interface when I needed to pull in the init_script_file_type attribute.  The move was based on my understanding that the use of interfaces and gen_require is preferred over using require blocks.  
> 
> > allow puppet_t self:capability { sys_admin fowner fsetid setuid setgid sys_rawio dac_override sys_nice sys_ptrace sys_tty_config };
> > Comment:
> > is that really required?
> 
> Probably not all are required.  Some were required to get the service to run, all appeared in the audit logs but are probably not all necessary for Puppet to function properly.  
> 
> -- 
> Craig Grube 

> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20090827/d51d0705/attachment.bin 

  reply	other threads:[~2009-08-27 14:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-26 23:45 [refpolicy] puppet.patch Grube, Craig
2009-08-27 10:31 ` Dominick Grift
2009-08-27 13:24   ` Grube, Craig
2009-08-27 14:20     ` Dominick Grift [this message]
2009-08-27 13:16 ` Daniel J Walsh
2009-08-27 14:03   ` Christopher J. PeBenito
2009-08-27 14:54     ` Daniel J Walsh
2009-08-27 14:56   ` Grube, Craig

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=20090827142035.GA5997@notebook3.grift.internal \
    --to=domg472@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.