Jail for emulators/linux_base

Dan Langille dan at langille.org
Sat Feb 7 11:14:13 PST 2004


In emulators/linux_base/Makefile, I see this:

.if !defined(BATCH) && !exists(${LINUXBASE}/dev/null)
        @${ECHO_MSG} ""
        @${ECHO_MSG} "You need to create the null device in your 
jailed Linux environment. Run this"
        @${ECHO_MSG} "outside the jail, then press enter:"
        @${ECHO_MSG} ""
        @${ECHO_MSG} "mkdir -m 0755 -p <Jail root dir>/dev"
        @${ECHO_MSG} "rm -f <Jail root dir>${LINUXBASE}/dev/null"
        @${ECHO_MSG} "mknod <Jail root dir>${LINUXBASE}/dev/null c 2 
2"
        @${ECHO_MSG} "chmod 666 <Jail root dir>${LINUXBASE}/dev/null"
        @${ECHO_MSG} ""
        @${SH} -c "read line"
.endif

Would it not be better to use ${LINUXBASE} instead of <Jail root 
dir>?  As it stands, the user (namely me) has no idea where <Jail 
root dir> should be.

-- 
Dan Langille : http://www.langille.org/
BSDCan - http://www.bsdcan.org/



More information about the freebsd-ports mailing list