Subject: Re: kern/35821: /dev/mem is not readable any more
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Elad Efrat <elad@bsd.org.il>
List: netbsd-bugs
Date: 02/25/2007 15:50:03
The following reply was made to PR kern/35821; it has been noted by GNATS.
From: Elad Efrat <elad@bsd.org.il>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/35821: /dev/mem is not readable any more
Date: Sun, 25 Feb 2007 17:48:31 +0200
Martin Husemann wrote:
> On Sat, Feb 24, 2007 at 11:10:02PM +0000, Elad Efrat wrote:
>> when did it (=acpidump thing) work with securelevel > 0? and did you try
>> with securelevel <= 0?
>
> You are right, it does not work on 4.0_BETA either. It works fine with
> securelevel -1.
>
> This does not make it less a bug - if the open succeeds, why should the
> read fail? Side note: EPERM is not an expected return value from {p}read.
>
> This behaviour disagrees with my reading of secmodel_bsd44(9), but maybe
> I'm missing something.
>
> Martin
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/i386/mem.c#rev1.62
-e.