All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Anderson <mike@theptrgroup.com>
To: SElinux <SELinux@tycho.nsa.gov>
Subject: Starting applications from initrc in a user's context?
Date: Thu, 23 Dec 2004 10:16:02 -0500	[thread overview]
Message-ID: <41CAE132.3020504@theptrgroup.com> (raw)

Greetings Gurus of Space, Time and SELinux:

  Let me preface by saying that I'm a newbie to SELinux.  <disclaimer done>

  I'm trying to run a series of applications from the init scripts that 
I want to run in separate user contexts. Four separate init scripts all 
run from a master script that runs the user code only if tripwire says 
that the file system is kosher.  The actual launching of the four 
separate scripts is working well.  However, I'm trying to use the runcon 
command to run the applications in the separate user contexts and  I'm 
getting a transition error from the initrc domain to the user domain.  
I've added the

allow initrc_t user1_t:process { transition };

to the user domain .te file as recommended by audit2allow, but this does 
not seem to squelch this error.   As an additional gotcha, the 
applications are actually Java code and are run with the "java 
classname" invokation.

What am I missing?  Or, is there a better way of running the four 
applications in their respective user domains from the init scripts?

Regards,

Mike

-- 

---------------------------------------------------------------
Mike Anderson                    703.585.9384
CTO/Chief Scientist              mike@ThePTRGroup.com
www.ThePTRGroup.com              Embedded, Real-Time Solutions
---------------------------------------------------------------
"Software development is like making a baby. 
 You can't make a baby in one month by impregnating nine women.
 Some things just take time."
             
      -Paraphrased from The Mythical Man Month


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

             reply	other threads:[~2004-12-23 15:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-23 15:16 Mike Anderson [this message]
2005-01-04 10:03 ` Starting applications from initrc in a user's context? Russell Coker
2005-01-12 16:54   ` Stephen Smalley
2005-01-12 19:47     ` Russell Coker

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=41CAE132.3020504@theptrgroup.com \
    --to=mike@theptrgroup.com \
    --cc=SELinux@tycho.nsa.gov \
    /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.