Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2005 05:23:32 +0200
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        Tzachi Tager <tzachi_tager@yahoo.com>
Cc:        freebsd-bugs@freebsd.org
Subject:   Re: using /dev/null in chrooted enviroment
Message-ID:  <20051228032332.GA30303@flame.pc>
In-Reply-To: <20051227144939.11177.qmail@web30812.mail.mud.yahoo.com>
References:  <20051227144939.11177.qmail@web30812.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-12-27 06:49, Tzachi Tager <tzachi_tager@yahoo.com> wrote:
> Hi,
> I'm trying to create chrooted enviroment, i did the folllowing
> in the chrooted enviroment:
>
> mknode c null 0 24
> mknode c zero 0 25
>
> And then i did chroot and those files are under /dev, but when
> i wrote a short program in C that tries to open /dev/null
> (within the chrooted env.) i got:
>
> "/dev/null-operation is not supported"

You forgot to mention what version of FreeBSD you are using.  It
may also help to see the contents of the chrooted /dev directory.

> Only by doing mount of devfs it seems to work fine, but i
> prefer not to do mount every time (because then i get that my
> chrooted enviroment pathname is too long for FreeBSD)

A complete trace of the commands you are running and the exact
error message is probably necessary here.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051228032332.GA30303>