All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] Defining per-service initrc domains
Date: Mon, 19 Jul 2010 14:05:57 -0400	[thread overview]
Message-ID: <4C449405.3010009@tresys.com> (raw)
In-Reply-To: <1279054665.28691.227.camel@moss-pluto.epoch.ncsc.mil>

On 07/13/10 16:57, Stephen Smalley wrote:
> Hi,
>
> We would like to be able to define a set of per-service initrc domains
> for particular rc scripts.  Although there seem to be a number of
> per-service rc script file types (e.g. ftpd_initrc_exec_t), init_t still
> transitions to the single initrc_t domain on all of those file types.
> We want to instead launch the different rc scripts in distinct domains
> from which we can then define per-service domain and file type
> transitions as well as different permissions.
>
> At first I thought that the init_script_domain() interface might work
> for this purpose, but that yields a transition to the single initrc_t
> domain from init_t and unconfined_t and only transitions to the new
> domain if we started from initrc_t.  Is that intentional or a mistake?

Init_script_domain() was written to provide exactly what you're looking 
for, but it isn't well tested.  I added it at the same time Dan started 
labeling individual init scripts so that roles like webadm and dbadm can 
start/stop only the relevant services.

> I presume it is happening as a result of rules on the type attributes
> elsewhere outside of the interface itself.

Probably.  I also need to check to see if there are transitions from 
initrc_t to the other init script types.  I think this is required since 
we get from init_t to initrc_t right away since /etc/rc.d/rc is in the 
inittab and its initrc_exec_t.

> Is there any precedent for creating such per-service initrc domains?
> And do we have any interfaces for doing so?

Not upstream.

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

  parent reply	other threads:[~2010-07-19 18:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13 20:57 [refpolicy] Defining per-service initrc domains Stephen Smalley
2010-07-14 11:48 ` Russell Coker
2010-07-14 13:40   ` Stephen Smalley
2010-07-19 18:05 ` Christopher J. PeBenito [this message]
2010-12-07 16:20 ` Jeremy Solt
2010-12-09 19:49   ` Stephen Smalley
2010-12-09 22:10     ` Paul Nuzzi

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=4C449405.3010009@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.