HAL and LUKS II: revenge of cryptsetup

Scott James Remnant scott at canonical.com
Mon Apr 21 09:57:16 PDT 2008


On Mon, 2008-04-21 at 15:48 +0100, Sam Morris wrote:

> > The fundamental problem is that device-mapper creates it's own device
> > nodes in /dev and that's why it's indeed racy. Instead it should rely on
> > udev doing this (udev is supposed to manage /dev) and, FWIW, it's a
> > known problem and have been discussed by myself, Alasdair and Kay on
> > more than one occasion. For some reason I'm not seeing these races on
> > Fedora so it "works" fine here (but probably not under load).
> 
> This seems to be what Ubuntu have done. I guess they have patched
> libdevmapper not to creat the device nodes itself.
> 
Both libdevmapper and udev create the device nodes in Ubuntu, we only
slightly tweaked the devmapper code so it wouldn't panic if udev beat it
to it, and would just check the perms, etc.

Scott
-- 
Scott James Remnant
scott at canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/hal/attachments/20080421/fb7bd795/attachment.pgp 


More information about the hal mailing list