mec> user opens device
mec> hourly cron job snapshots owners and modes in /dev
mec> system crashes
mec> system reboots
mec> init-job restores owners and modes in /dev
gooch> Good point. Yeah, you probably really want open_pty() instead. But, as
gooch> I said, this is a separate issue. Writing devfs is not about fixing
gooch> pty creation, but better management of *all* devices.
I believe that with the current disk-based /dev, and the same use case,
the same thing would happen -- when the system crashes, /dev/foo will
have the owner and mode that it did when it crashed, and some user-land
program has to fix it. I could hit the big switch on my box and find
out.
So under the new scheme, if the new init-job runs very early,
it will have a compatible misfeature. :)
Michael Chastain
<mailto:mec@shout.net>
"love without fear"