From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luke Kenneth Casson Leighton Date: Mon, 09 Aug 2004 18:59:21 +0000 Subject: Re: lots of allow xxx_device_t device_t:filesystem { associate } Message-Id: <20040809190901.GM3868@lkcl.net> List-Id: References: <20040809175246.GK3868@lkcl.net> <1092077016.29199.166.camel@moss-spartans.epoch.ncsc.mil> In-Reply-To: <1092077016.29199.166.camel@moss-spartans.epoch.ncsc.mil> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Stephen Smalley Cc: SE-Linux , Linux Hotplug Dev List On Mon, Aug 09, 2004 at 02:43:36PM -0400, Stephen Smalley wrote: > On Mon, 2004-08-09 at 13:52, Luke Kenneth Casson Leighton wrote: > > i'm getting an awful lot of the above due to udev creating > > inodes in /dev which i decided to associate with device_t. > > allow device_type device_t:filesystem associate; > should cover most cases. thank you: i found this: i was more concerned that i should be setting mount -o fscontext=....fs_t instead? > > now i have had to add about 15 or 20 lines so far each for pretty > > much every xxx_device_t under the sun, and am concerned that i > > am taking the wrong approach. > > Other than the associate permission, what else do you need to add? eek. allow initrc_t device_t:lnk_file { create }; for a symlink to be created between /proc/self/fd and /dev/fd i realise it would be better to move stuff in /etc/init.d/udev to a separate program, e.g. /sbin/udev-init, and to have that program be given a separate domain instead of having to add this to initrc_t. allow udev_t device_t:file { getattr unlink }; for /sbin/udev to stat and remove /dev/null... exactly what is going on here i don't know. allow udev_t self:process { setfscreate }; surprise surprise, it's doing the same thing as restorecon, so, duh, udev needs this. more later. l. ------------------------------------------------------- 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