From owner-freebsd-current@FreeBSD.ORG Fri Apr 2 11:59:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9828C16A4CE; Fri, 2 Apr 2004 11:59:57 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87D4D43D1F; Fri, 2 Apr 2004 11:59:57 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 804D15C817; Fri, 2 Apr 2004 11:59:57 -0800 (PST) Date: Fri, 2 Apr 2004 11:59:57 -0800 From: Alfred Perlstein To: Poul-Henning Kamp Message-ID: <20040402195957.GN26131@elvis.mu.org> References: <20040402191254.GK26131@elvis.mu.org> <35917.1080933274@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35917.1080933274@critter.freebsd.dk> User-Agent: Mutt/1.4.2.1i cc: alc@freebsd.org cc: current@freebsd.org Subject: Re: mmap breakage? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2004 19:59:57 -0000 * Poul-Henning Kamp [040402 11:14] wrote: > In message <20040402191254.GK26131@elvis.mu.org>, Alfred Perlstein writes: > >* Poul-Henning Kamp [040402 10:40] wrote: > >> In message <20040402160959.GJ26131@elvis.mu.org>, Alfred Perlstein writes: > >> >I noticed that mplayer seems to want to open /dev/zero with RDONLY > >> >but then tries to mmap it PROT_READ+PROT_WRITE and gets rejected. > >> > >> Sounds like missing MAP_PRIVATE ? > > > >Nope, private is set. It's just that the file is opened RDONLY, > >but PROT has PROT_WRITE in it. > > That should be OK with MAP_PRIVATE as far as I interpret POLA. Ok, but it's not. :) -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684