mmap breakage?
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Apr 2 11:14:36 PST 2004
In message <20040402191254.GK26131 at elvis.mu.org>, Alfred Perlstein writes:
>* Poul-Henning Kamp <phk at phk.freebsd.dk> [040402 10:40] wrote:
>> In message <20040402160959.GJ26131 at 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 at 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.
More information about the freebsd-current
mailing list