linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Cc: SE-Linux <selinux@tycho.nsa.gov>,
	Linux Hotplug Dev List
	<linux-hotplug-devel@lists.sourceforge.net>
Subject: Re: idea - running setfiles out of inetd!
Date: Thu, 19 Aug 2004 04:55:02 +0000	[thread overview]
Message-ID: <200408191455.02780.russell@coker.com.au> (raw)
In-Reply-To: <20040818160459.GH19646@lkcl.net>

On Thu, 19 Aug 2004 02:04, Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
> > What if udev spawns "setfiles -q -s" and then sends the file names down
> > the pipe to it only closing the pipe after a certain time period of no
> > new nodes?
>
>  okay, cool...
>
>  so.... hey yes, of course.
>
>  yes, so that could be run from the main udev process, i get it.
>
>  and you exec each udevstart to create the file name, and then
>  send the same filename down to the "setfiles -q -s".

Yes.

>  is using popen() okay to do that?

Should be.

>  what implications [on policy writing and also security]
>  will it have to be running setfiles from inside udev
>  (bearing in mind that popen involves a pipe and a fork)

Nothing significant.  I don't think we'll have a domain transition (don't want 
it to relabel arbitrary files), just have it run in udev_t (which should 
already have most if not all the access needed for this.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      reply	other threads:[~2004-08-19  4:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-17 19:47 idea - running setfiles out of inetd! Luke Kenneth Casson Leighton
2004-08-18  9:56 ` Russell Coker
2004-08-18 16:04   ` Luke Kenneth Casson Leighton
2004-08-19  4:55     ` Russell Coker [this message]

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=200408191455.02780.russell@coker.com.au \
    --to=russell@coker.com.au \
    --cc=linux-hotplug-devel@lists.sourceforge.net \
    --cc=lkcl@lkcl.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).