From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 28 03:24:56 2005 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC27916A41F for ; Wed, 28 Dec 2005 03:24:56 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F288943D75 for ; Wed, 28 Dec 2005 03:24:47 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: (qmail 6065 invoked by uid 207); 28 Dec 2005 03:24:45 -0000 Received: from keramida@freebsd.org by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.30/3.97. Clear:RC:1(81.186.70.96):. Processed in 0.089641 secs); 28 Dec 2005 03:24:45 -0000 Received: from dialup96.ach.sch.gr (HELO flame.pc) ([81.186.70.96]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with SMTP for ; 28 Dec 2005 03:24:44 -0000 Received: by flame.pc (Postfix, from userid 1001) id 426B2116E7; Wed, 28 Dec 2005 05:23:32 +0200 (EET) Date: Wed, 28 Dec 2005 05:23:32 +0200 From: Giorgos Keramidas To: Tzachi Tager Message-ID: <20051228032332.GA30303@flame.pc> References: <20051227144939.11177.qmail@web30812.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051227144939.11177.qmail@web30812.mail.mud.yahoo.com> Cc: freebsd-bugs@freebsd.org Subject: Re: using /dev/null in chrooted enviroment X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 03:24:56 -0000 On 2005-12-27 06:49, Tzachi Tager 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.