From: Tom <tom@lemuria.org>
To: Stephen Smalley <sds@epoch.ncsc.mil>
Cc: SE Linux <selinux@tycho.nsa.gov>
Subject: Re: run_init woes
Date: Thu, 22 May 2003 15:32:58 +0200 [thread overview]
Message-ID: <20030522153250.A6588@lemuria.org> (raw)
In-Reply-To: <1053605415.4729.1349.camel@moss-huskers.epoch.ncsc.mil>; from sds@epoch.ncsc.mil on Thu, May 22, 2003 at 08:10:20AM -0400
On Thu, May 22, 2003 at 08:10:20AM -0400, Stephen Smalley wrote:
> What happens if you do the following (in permissive mode, of course):
> runas system_u:system_r:initrc_t /etc/init.d/pxe start
It starts up and runs in the correct domain. (pxe_t)
> Are you using the extension to run_init created by Russell Coker to
> create a separate pty for the daemon, or just the normal run_init
> program?
I'm using Russells run_init from his current debian packages. I assume
that it comes with his extensions.
> What happens if you use the upstream run_init without his
> modification?
I've just downloaded and compiled it, and it works fine.
Russell - I've also made a few other experiments, since I was so sure I
had seen this before. rsync (as a daemon) also has the same problem,
but it throws an error message into the logfile:
May 22 15:27:38 setest rsyncd[681]: rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(229)
It also works fine with the upstream run_init. Of course, there are
these messages which were the initial cause for the modification:
May 22 15:28:13 setest kernel: avc: denied { read write } for pid=688 exe=/usr/bin/rsync path=/0 dev=00:07 ino=2 scontext=system_u:system_r:rsyncd_t tcontext=root:object_r:user_devpts_t tclass=chr_file
--
PGP/GPG key: http://web.lemuria.org/pubkey.html
pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <tom@lemuria.org>
Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5
--
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.
next prev parent reply other threads:[~2003-05-22 13:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-22 9:28 run_init woes Tom
2003-05-22 12:10 ` Stephen Smalley
2003-05-22 13:32 ` Tom [this message]
2003-05-22 12:41 ` Russell Coker
2003-05-22 13:39 ` Tom
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=20030522153250.A6588@lemuria.org \
--to=tom@lemuria.org \
--cc=sds@epoch.ncsc.mil \
--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.