Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 1998 09:15:42 +0200 (CEST)
From:      Andrzej Bialecki <abial@nask.pl>
To:        Mike Smith <mike@smith.net.au>
Cc:        Jerome DE VIVIE <jerome@DotCom.FR>, freebsd-small@FreeBSD.ORG
Subject:   Re: netstat with a kernel.kz 
Message-ID:  <Pine.BSF.4.00.9807230901240.21583-100000@korin.warman.org.pl>
In-Reply-To: <199807230010.RAA02415@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 22 Jul 1998, Mike Smith wrote:

> > Hi,
> > 
> > I have to put up a very small system which need kernel symbols. I use 
> > dumpnlist, kvm_mkdb, and ROOTMFS from picobsd. I zip all .
> > 
> > Some fuction like kvm_openfiles need the uncompressed /kernel file and,
> > i have to run netstat which call kvm_openfiles => problem !
> > 
> > I have put up a /var/db/kvm_kernel.db and i would like to use it 
> > instead of the uncompressed /kernel (with the whole MFS inside).
> > 
> > Is it possible ? and how ?

... and one more thought: some time ago someone (Martin Kammerhofer
<mkamm@icg.tu-graz.ac.at>, Subject: kernel symbols) sent a patch to
'strip' and friends which allows to install a very limited symbol table as
/kernel, so that those pesky programs could open and read it.

It's something you could use, but IMHO using sysctl(3) is more appropriate
and flexible. Poking the kernel memory to get at some obscure bits and
pieces is evil.

The only problem is that there are still some data missing in the MIB
tree. They could be added to the MIB, but I'm not sure if sysctl(3) is
checking the _read_ privileges of the asking process, so that it wouldn't
leak sensitive information... Also, I think that the whole kvm mess is
just a legacy way to get info which was unavailable in any other decent
way; but, again, now that we have so robust sysctl mechanism, it should go
away (IMVHO of course :-).

 Andrzej Bialecki

+---------------------+------------------------+--------------------------+
| <abial@nask.pl>     | When in problem or in  |  if(halt_per_mth > 0) {  |
| Research & Academic | doubt, run in circles, |      fetch("FreeBSD");   |
| Network in Poland   | scream and shout.      |  }                       |
+ --------------------+------------------------+--------------------------+


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.00.9807230901240.21583-100000>