From: Luke Kenneth Casson Leighton Date: Thu, 29 Jul 2004 14:38:17 +0000 Subject: [sds@epoch.ncsc.mil: Re: temporary hack to use udev in selinux] Message-Id: <20040729143817.GJ8858@lkcl.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org i believe that the use of the udev_selinux stuff was there to make the node creation have the correct permissions at create time. this would at least avoid _one_ race condition. l. ----- Forwarded message from Stephen Smalley ----- Envelope-to: lkcl@localhost Delivery-date: Thu, 29 Jul 2004 14:33:18 +0100 X-Sieve: CMU Sieve 2.2 Subject: Re: temporary hack to use udev in selinux From: Stephen Smalley To: Joshua Brindle Cc: Luke Kenneth Casson Leighton , SE-Linux , James Morris , Daniel J Walsh Organization: National Security Agency X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at hands.com On Wed, 2004-07-28 at 20:29, Joshua Brindle wrote: > Chris PeBenito made this patch for Gentoo when we were evalutating udev > on selinux > > http://dev.gentoo.org/~method/1330_linux-2.6.5-ramfs-xattr.patch Why wasn't this submitted upstream? ramfs xattr support (and likewise for other pseudo fs's like tmpfs) has been on our todo list for some time. > that should patch cleanly into 2.6.7, but I'd like to note that at this > point udev is braindead wrt SELinux. > Once upon a time udev had selinux support integrated so that setfscreate > was called to set the context of the devices being written however it > was changed at some point to make SELinux an after device creation addon > script which makes it label the devices after they are created. Because > of this Hardened Gentoo has decided not to support udev at this time. I haven't tried udev myself, but I think Dan has used it successfully with SELinux. I'd agree that having udev directly call matchpathcon() and then setfscreatecon() prior to node creation would be preferable, but I'm not sure that it is strictly necessary - as long as the default creation type is suitably restrictive and nothing tries to access it prior to the restorecon. -- Stephen Smalley National Security Agency ----- End forwarded message ----- -- -- Information I post is with honesty, integrity, and the expectation that you will take full responsibility if acting on the information contained, and that, should you find it to be flawed or even mildly useful, you will act with both honesty and integrity in return - and tell me. -- lkcl.net
lkcl@lkcl.net
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ 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