From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 27 14:49:41 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 DB58D16A41F for ; Tue, 27 Dec 2005 14:49:41 +0000 (GMT) (envelope-from tzachi_tager@yahoo.com) Received: from web30812.mail.mud.yahoo.com (web30812.mail.mud.yahoo.com [68.142.201.138]) by mx1.FreeBSD.org (Postfix) with SMTP id 4724343D5E for ; Tue, 27 Dec 2005 14:49:40 +0000 (GMT) (envelope-from tzachi_tager@yahoo.com) Received: (qmail 11179 invoked by uid 60001); 27 Dec 2005 14:49:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=L+4bzQpZw5g+NBaRz6OwsqgHoincxg47I7g1XvzWY1nH0TKho7k7L6o1BgbRHrzxVYYnBcHnnz7fjkRz+D6l6iNHC+uyhWSPVvKWHxq80GJ6Y5F74Ec8hGfWuO7uBV2GS3qmU27BCubVwjMxIhwB2KOccRHJPpimfrQCPUB6oNw= ; Message-ID: <20051227144939.11177.qmail@web30812.mail.mud.yahoo.com> Received: from [80.74.107.235] by web30812.mail.mud.yahoo.com via HTTP; Tue, 27 Dec 2005 06:49:39 PST Date: Tue, 27 Dec 2005 06:49:39 -0800 (PST) From: Tzachi Tager To: freebsd-bugs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Tue, 27 Dec 2005 14:49:42 -0000 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" Any way i tried to open or use (i'm running "perl -pi -e ..." and it said that: "Can't open perl script "-e": No such file or directory". which brings me again to /dev/null) i get the same message "/dev/null-operation is not supported". 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) I'm not quite sure if this is a bug, but i hope it is (sorry to say that). --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping