|
From: Matt Z. <md...@de...> - 2003-06-23 18:25:36
|
On Mon, Jun 23, 2003 at 12:28:07PM -0400, David Coulson wrote: > Steve Schnepp wrote: > >Maybe the hostfs switch doesn't work either, but actually i don't think > >rootfs would work. [ Well... I didn't try actually ] > > rootfs sets the UML's root filesystem - It has nothing to do with > hostfs. hostfs= sets the toplevel directory for mounting hostfs. > > >You have to be root to use chroot since I don't know any other way. It > >could be a good reason for some. > > Start as root > chroot() > setgid > setuid > run UML It might be nice if UML could do the chroot/setuid itself if started as root, after opening its files. This way, ubd devices and such could be kept outside the chroot. -- - mdz |