All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] Defining per-service initrc domains
@ 2010-07-13 20:57 Stephen Smalley
  2010-07-14 11:48 ` Russell Coker
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stephen Smalley @ 2010-07-13 20:57 UTC (permalink / raw)
  To: refpolicy

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?
I presume it is happening as a result of rules on the type attributes
elsewhere outside of the interface itself.

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

-- 
Stephen Smalley
National Security Agency

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-09 22:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-12-07 16:20 ` Jeremy Solt
2010-12-09 19:49   ` Stephen Smalley
2010-12-09 22:10     ` Paul Nuzzi

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.