Top in jails

Robert Watson rwatson at freebsd.org
Sat Aug 23 18:27:07 PDT 2003


On Fri, 22 Aug 2003, Rus Foster wrote:

> I'm playing with jail on FBSD5 and wondered if there was anyway I could
> use top without have to create /dev/mem. ATM anyone in the jail could
> just do cat /dev/mem | grep for_intresting_stuff. Any ideas? 
> 
> Tried using devfs and still no luck

top should run fine without /dev/mem -- by default, it will use sysctl(),
and isn't setgid kmem, so can't access /dev/mem by default, so isn't using
it even outside jail.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert at fledge.watson.org      Network Associates Laboratories



More information about the freebsd-current mailing list