--- Begin Message ---
- To: linux-kernel@vger.rutgers.edu
- Subject: umount-root-3
- From: almesber@lrc.di.epfl.ch
- Date: Thu, 20 Jan 2000 14:04:17 +0100
- Message-id: <20000120140417.C20077@lrc.di.epfl.ch>
- In-reply-to: <20000117093316.A16406@lrc.di.epfl.ch>; from almesber@lrc.di.epfl.ch on Mon, Jan 17, 2000 at 09:33:16AM +0100
- References: <20000116032425.E12138@lrc.di.epfl.ch> <20000116161705.H12138@lrc.di.epfl.ch> <20000117093316.A16406@lrc.di.epfl.ch>
Yet another version of my patch for root-hopping, for pre-2.3.40-6:
ftp://lrcftp.epfl.ch/pub/people/almesber/misc/umount-root-3.tar.gz
This one I've tested with a real NFS root. There was one problem:
rpciod is created as a child of mount, so it doesn't share current->fs
with init, and therefore doesn't leave the original / on chroot. I've
fixed it by adding a call to exit_fs to linux/net/sunrpc/sched.c:rpciod
(rpciod doesn't use files anyway).
The NFS root example is described in the README.
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, ICA, EPFL, CH werner.almesberger@ica.epfl.ch /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
--- End Message ---