From owner-freebsd-current@FreeBSD.ORG Fri Apr 2 11:14:36 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 140C316A4CE; Fri, 2 Apr 2004 11:14:36 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6408143D1D; Fri, 2 Apr 2004 11:14:35 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i32JEYHY035918; Fri, 2 Apr 2004 21:14:34 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Alfred Perlstein From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 02 Apr 2004 11:12:54 -0800." <20040402191254.GK26131@elvis.mu.org> Date: Fri, 02 Apr 2004 21:14:34 +0200 Message-ID: <35917.1080933274@critter.freebsd.dk> 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:14:36 -0000 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. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.