xref: /netbsd/sbin/mount_portal/examples/fs.1 (revision 909ff0ab)
1*909ff0abSkamil$NetBSD: fs.1,v 1.2 2017/05/09 23:26:49 kamil Exp $
2*909ff0abSkamil
3854e99c5SbgraysonUse the following configuration file (also stored in fs.1.conf):
4854e99c5Sbgrayson
5854e99c5Sbgraysonfs/	file	fs/
6854e99c5Sbgrayson
7854e99c5SbgraysonMount the portal.  By default, every path will be based off of /.
8854e99c5Sbgrayson
9854e99c5Sbgrayson% mkdir portal
10854e99c5Sbgrayson% mount_portal /usr/share/examples/mount_portal/fs.1.conf `pwd`/portal
11854e99c5Sbgrayson% cksum /etc/rc
12854e99c5Sbgrayson1896381655 10514 /etc/rc
13854e99c5Sbgrayson% cksum portal/fs/etc/rc
14854e99c5Sbgrayson1896381655 10514 portal/fs/etc/rc
15854e99c5Sbgrayson
16854e99c5SbgraysonAs it currently stands, the fs option is of limited usefulness.
17854e99c5SbgraysonThe man page mentions that it can be used to "provide a
18854e99c5Sbgraysoncontrolled escape path from a chrooted environment".
19