From: Russell Coker Date: Thu, 19 Aug 2004 04:55:02 +0000 Subject: Re: idea - running setfiles out of inetd! Message-Id: <200408191455.02780.russell@coker.com.au> List-Id: References: <20040817194712.GV18321@lkcl.net> <200408181956.46017.russell@coker.com.au> <20040818160459.GH19646@lkcl.net> In-Reply-To: <20040818160459.GH19646@lkcl.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Luke Kenneth Casson Leighton Cc: SE-Linux , Linux Hotplug Dev List On Thu, 19 Aug 2004 02:04, Luke Kenneth Casson Leighton 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