From owner-freebsd-small Thu Jul 23 00:13:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA25445 for freebsd-small-outgoing; Thu, 23 Jul 1998 00:13:18 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA25440 for ; Thu, 23 Jul 1998 00:13:13 -0700 (PDT) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.8.8/8.8.5) with SMTP id JAA29307; Thu, 23 Jul 1998 09:15:42 +0200 (CEST) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Thu, 23 Jul 1998 09:15:42 +0200 (CEST) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: Mike Smith cc: Jerome DE VIVIE , freebsd-small@FreeBSD.ORG Subject: Re: netstat with a kernel.kz In-Reply-To: <199807230010.RAA02415@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 , 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 +---------------------+------------------------+--------------------------+ | | 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