atom feed3 messages in org.freebsd.freebsd-alphaRe: bogon in 4.x memory device
FromSent OnAttachments
Alfred PerlsteinSep 25, 2001 12:06 am 
brian j. petersonSep 25, 2001 2:24 am 
Robert WatsonSep 25, 2001 5:41 am 
Subject:Re: bogon in 4.x memory device
From:brian j. peterson (rb@myplace.org)
Date:Sep 25, 2001 2:24:04 am
List:org.freebsd.freebsd-alpha

the patch needed an include added:

--- sys/alpha/alpha/mem.c.RELENG_4_4_0_RELEASE Sat May 13 17:29:44 2000 +++ sys/alpha/alpha/mem.c Tue Sep 25 00:36:06 2001 @@ -57,6 +57,7 @@ #include <sys/msgbuf.h> #include <sys/random.h> #include <sys/signalvar.h> +#include <sys/fcntl.h>

#include <machine/frame.h> #include <machine/psl.h> @@ -138,7 +139,7 @@ switch (minor(dev)) { case 0: case 1: - if (securelevel >= 1) + if ((flags & FWRITE) && securelevel > 0) return (EPERM); break; case 32:

anyway, top(1) now works on my box with securelevel at 2.

thanks again to bright.

-brian

On Tue, Sep 25, 2001 at 02:07:01AM -0500, Alfred Perlstein wrote:

without this top(1) fails on machines with raised securelevel.

can anyone review/comment?

Reported by: brian j. peterson <rb@myplace.org>

Index: mem.c =================================================================== RCS file: /home/ncvs/src/sys/alpha/alpha/mem.c,v retrieving revision 1.19.2.3 diff -u -r1.19.2.3 mem.c --- mem.c 2000/05/14 00:29:44 1.19.2.3 +++ mem.c 2001/09/25 06:55:30 @@ -138,7 +138,7 @@ switch (minor(dev)) { case 0: case 1: - if (securelevel >= 1) + if ((flags & FWRITE) && securelevel > 0) return (EPERM); break; case 32:

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message