tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (Semi-random) thoughts on device tree structure and devfs



On Tue, Mar 09, 2010 at 04:25:06PM +0100, Joerg Sonnenberger wrote:
> 
> I don't think it has to be or should be in the kernel. Basically,
> /dev/dk3 gets created or is used by the kernel. A daemon is notified
> (*cough* udevd) and that scans the device properties, finds the UUID and
> creates /dev/uuid/2345324523453245. It also finds the label and creates
> /dev/label/my-usb-stick. The latter is what you put in /etc/fstab.

And now anyone who can jack around with the userspace daemon process
can cause you to mount a filesystem you didn't intend to mount.

I think discovery of the identifiers used to mount devices needs to
be in the kernel.  We can do that already for RAIDframe and GPT; why
back away from it now?

Thor


Home | Main Index | Thread Index | Old Index