From owner-freebsd-questions@FreeBSD.ORG Sun Jan 7 15:53:29 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A78C416A40F for ; Sun, 7 Jan 2007 15:53:29 +0000 (UTC) (envelope-from michael.grant@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 410B413C459 for ; Sun, 7 Jan 2007 15:53:28 +0000 (UTC) (envelope-from michael.grant@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so8539842nfc for ; Sun, 07 Jan 2007 07:53:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=EkCqVHopuMWd9t4ekQAUdCm8fKuICAmSj9ad5v7TrlttrFhv9RUHXmUT29JDI1aHaedjrP0Bo3u1A58uU8dGoLmOvWNBbNVU6vicamsK902hOFBZtkcFlHqB4iRcBpWPxfKyh8U3+bFrIYBfZwdE2CKriWXrgfY8565FuTMq5fo= Received: by 10.82.107.15 with SMTP id f15mr2516397buc.1168185207882; Sun, 07 Jan 2007 07:53:27 -0800 (PST) Received: by 10.82.134.11 with HTTP; Sun, 7 Jan 2007 07:53:27 -0800 (PST) Message-ID: <62b856460701070753p62a3c531g63f08b164d23e6eb@mail.gmail.com> Date: Sun, 7 Jan 2007 16:53:27 +0100 From: "Michael Grant" Sender: michael.grant@gmail.com To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 5615b5deaf0b7b32 Subject: /dev/null in a chroot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 15:53:29 -0000 I chrooted apache to /www. In order to run a java program from a web page, java needs a /dev/null inside the chroot. I don't want to create another whole /dev/ dir with all the disk raw devices there to be read for anyone who cracks root. I just want a /www/dev/null file. I tried creating a node with mknod exactly like the node in /dev but it doesn't work in freebsd 6. /dev/ is special now and you can't just create nodes anywhere like the old days. Is there a way to create a /www/dev/null which acts just like /dev/null? Michael Grant