From nobody@FreeBSD.org  Mon Apr  1 22:55:08 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id D97F437B400
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Apr 2002 22:55:07 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g326t7187190;
	Mon, 1 Apr 2002 22:55:07 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200204020655.g326t7187190@freefall.freebsd.org>
Date: Mon, 1 Apr 2002 22:55:07 -0800 (PST)
From: Jon Ringutte <wintermute@imeme.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] Top does not work correctly in a jail
X-Send-Pr-Version: www-1.0

>Number:         36646
>Category:       bin
>Synopsis:       [patch] top(1) does not work correctly in a jail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dwmalone
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 01 23:00:03 PST 2002
>Closed-Date:    Fri Jun 02 13:22:52 GMT 2006
>Last-Modified:  Fri Jun  2 13:30:15 GMT 2006
>Originator:     Jon Ringutte
>Release:        4.5
>Organization:
iMeme
>Environment:
FreeBSD lightning.bogus.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Tue Mar 26 02:04:57 EST 2002     wintermute@lightning.bogus.com:/usr/src/sys/compile/Lightning  i386
>Description:
The current implimentation of TOP in 4.5-RELEASE (and all previous) does not allow 'top' to be run inside of a jail.  It fails due to not being able to access certain information via the kvm_read's (which is completly understandable).
>How-To-Repeat:
Create a jail and try to run 'top' in it.
>Fix:
Patch at : http://peoplearestrange.net/jon/machine.c.diff
 (this patch should work against 4.5-RELASE)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dwmalone 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Tue Apr 2 01:19:48 PST 2002 
Responsible-Changed-Why:  
I've a few top PRs at the moment, so I'll have a look at this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36646 
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Fri Jun 2 13:22:06 UTC 2006 
State-Changed-Why:  
Mail to the submitter bounces and as far as I see top(1) works 
in jail environment quite well. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36646 

From: Maxim Konovalov <maxim@macomnet.ru>
To: Jon Ringutte <wintermute@imeme.net>
Cc: bug-followup@freebsd.org
Subject: bin/36646
Date: Fri, 2 Jun 2006 17:20:34 +0400 (MSD)

 Jon,
 
 Find your really old PR and wonder is it still an issue?  I see top(1)
 works quite well in jail environment.  URL you submitted doesn't work
 at the moment and I can't check the patch was applied or not.
 
 Thanks!
 
 -- 
 Maxim Konovalov
 
>Unformatted:
