From owner-freebsd-questions@FreeBSD.ORG Sat Sep 10 12:57:10 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A8AE16A41F for ; Sat, 10 Sep 2005 12:57:10 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail23.sea5.speakeasy.net (mail23.sea5.speakeasy.net [69.17.117.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F33B43D46 for ; Sat, 10 Sep 2005 12:57:10 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 7357 invoked from network); 10 Sep 2005 12:57:09 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail23.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Sep 2005 12:57:09 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 2B975E5; Sat, 10 Sep 2005 08:57:09 -0400 (EDT) Sender: lowell@be-well.ilk.org To: ruben@bloemgarten.demon.nl References: <20050909220030.943A643D46@mx1.FreeBSD.org> From: Lowell Gilbert Date: 10 Sep 2005 08:57:08 -0400 In-Reply-To: <20050909220030.943A643D46@mx1.FreeBSD.org> Message-ID: <44mzml3wt7.fsf@be-well.ilk.org> Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: /dev/mem /dev/kmem jails and using netstat -r and snmp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2005 12:57:10 -0000 "Ruben Bloemgarten" writes: > I seem to be a bit stuck here. I seem to need access to /dev/mem and > /dev/kmem from inside a jail . Specifically to be able to use netstat =C2= =96r and > snmp in jailed environments. I=C2=92m running FBSD 5.4-RELEASE. Could any= one help > me shed some light on this problem ? Thanks.=20 Making kmem available in a jail seems like it can't be the right answer to anything. Kind of contradicts the point, I would think. I don't see an easy way around this. Furthermore, there are different approaches depending on why you are trying to do this. If you want system statistics inside of a jail for remote monitoring, consider whether that is the best approach; after all, network management *is* a fundamentally privileged operation. One way to do it would be to feed the statistics into the jail from outside of it; this way, the privileged operation is separated from the network-accessible code, and not dependent on it in any way. Good luck.