[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Blocking write access to /dev/kmem
On Tue, 11 Jun 2002, Luis J. M. wrote:
> My apologizes for my last mail, I didn't specified what I was looking
> for enough. What I'm searching is the code that locks /dev/kmem, not
> how to block /dev/kmem.
That device is governed by the sys/arch/i386/i386/mem.c file. If you look
at the memopen() function, it keeps track of whether or not it wants to be
opened.
>
> > [tech is not the place to ask this kind of question, misc is. You
> > should read the openbsd web site, especiallly about the mailing
> > lists.]
> (from http://www.openbsd.org/mail.html)
> tech
> Technical topics for OpenBSD developers and advanced users.
> Please direct 'new user' and installation-related questions to misc.
>
> Do you think it was a newbie question?
>
> > Do an ls -l on those devices, for starters. That will tell you something
> > Also, do a man mem for more information, which will lead you other
> > places, like securelevel(7). That will give you a better picture of
> > whats going on.
> >
> > Remember that the man pages on OpenBSD are really good, and
> > random "man whatever" or "apropos whatever" can lead to very
> > interesting reading.....
>
> What makes you think I didn't read the man pages?
>
>
> > --STeve Andre'
> >
> > On Tuesday 11 June 2002 16:58, Luis J. M. wrote:
> > > I've been looking for how OpenBSD blocks the writing access for /dev/km
> > em
> > > and /dev/mem unsuccessfully and I'd be interested in know how it's done
> > .
> > > Does anyone knows how?
> >
>
>
--
If you ever would give them a helping hand,
You can be sure they'll chop off the arm.
Never, ever, never trust a Klingon; you will always regret it.