From owner-freebsd-questions@FreeBSD.ORG Sun Jan 7 16:05:10 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 B849B16A40F for ; Sun, 7 Jan 2007 16:05:10 +0000 (UTC) (envelope-from michael.grant@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 44A3F13C46B for ; Sun, 7 Jan 2007 16:05:10 +0000 (UTC) (envelope-from michael.grant@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so8542759nfc for ; Sun, 07 Jan 2007 08:05:09 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=UuDx8xh0+mq2/Ty/HAfJ5v+8naB1nKqJl53rD8BCm4rybLT3KmdErEERC7ZLFDnIGEflkkfLsJgYBGHyG+OB5+xSltnV+KMEGxeTGgJ3I0E4B13VYo55QA/+mEKh5n//IffDXYQRNPYqjziucDGtUYFGoZLT84EKkFOHtmAbrTM= Received: by 10.82.152.16 with SMTP id z16mr2425579bud.1168185908818; Sun, 07 Jan 2007 08:05:08 -0800 (PST) Received: by 10.82.134.11 with HTTP; Sun, 7 Jan 2007 08:05:08 -0800 (PST) Message-ID: <62b856460701070805l2e557025l89d40e7b53ec59c@mail.gmail.com> Date: Sun, 7 Jan 2007 17:05:08 +0100 From: "Michael Grant" Sender: michael.grant@gmail.com To: "FreeBSD Questions" In-Reply-To: <62b856460701070753p62a3c531g63f08b164d23e6eb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <62b856460701070753p62a3c531g63f08b164d23e6eb@mail.gmail.com> X-Google-Sender-Auth: 78fda63288423d48 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 16:05:10 -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