From owner-freebsd-ports@FreeBSD.ORG Mon Dec 20 20:58:48 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BCD016A4CE for ; Mon, 20 Dec 2004 20:58:48 +0000 (GMT) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0DB143D41 for ; Mon, 20 Dec 2004 20:58:47 +0000 (GMT) (envelope-from stephen@math.missouri.edu) Received: from [10.0.0.4] (12-216-243-9.client.mchsi.com[12.216.243.9]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20041220205847m9200aard0e>; Mon, 20 Dec 2004 20:58:47 +0000 Message-ID: <41C73D06.90000@math.missouri.edu> Date: Mon, 20 Dec 2004 14:58:46 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041216 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <41C71776.5010308@math.missouri.edu> <20041220204708.GB92334@xor.obsecurity.org> In-Reply-To: <20041220204708.GB92334@xor.obsecurity.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: sh in linux_base cannot write to /dev/null X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 20:58:48 -0000 Kris Kennaway wrote: > On Mon, Dec 20, 2004 at 12:18:30PM -0600, Stephen Montgomery-Smith wrote: > >>I installed linux_base from the ports. If I then run >>/compat/linux/bin/sh >>and then type >>cat > /dev/null >>I get an error message: >>sh: /dev/null: Permission denied >> >>Incidently this error doesn't happen with linux_base-8. >> >>I am running FreeBSD-5.3-STABLE and ls -l /dev/null gives >>crw-rw-rw- 1 root wheel 2, 2 Dec 20 12:11 /dev/null > > > It's actually /compat/linux/dev/null that's being written to. What's > there on your machine? > > Kris There is nothing there. Presumably some kind of makedev instruction would fix it, but I don't know what that instruction would be. (With linux_base-8 there isn't even a /compat/linux/dev - was this a deliberate change?)