From owner-cvs-all Wed Nov 17 7:58:48 1999 Delivered-To: cvs-all@freebsd.org Received: from yana.lemis.com (yana.lemis.com [192.109.197.140]) by hub.freebsd.org (Postfix) with ESMTP id 76FB51527D; Wed, 17 Nov 1999 07:58:40 -0800 (PST) (envelope-from grog@mojave.sitaranetworks.com) Received: from mojave.sitaranetworks.com (mojave.sitaranetworks.com [199.103.141.157]) by yana.lemis.com (8.8.8/8.8.8) with ESMTP id CAA23779; Thu, 18 Nov 1999 02:28:34 +1030 (CST) (envelope-from grog@mojave.sitaranetworks.com) Message-ID: <19991117105800.17261@mojave.sitaranetworks.com> Date: Wed, 17 Nov 1999 10:58:00 -0500 From: Greg Lehey To: Peter Wemm , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/ps Makefile Reply-To: Greg Lehey References: <199911171337.FAA17140@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <199911171337.FAA17140@freefall.freebsd.org>; from Peter Wemm on Wed, Nov 17, 1999 at 05:37:30AM -0800 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Wednesday, 17 November 1999 at 5:37:30 -0800, Peter Wemm wrote: > peter 1999/11/17 05:37:30 PST > > Modified files: > bin/ps Makefile > Log: > I'm probably jumping the gun, but what the heck, this is -current. > Turn off setgid-kmem for /bin/ps, it's now quite functional without it. > ps no longer needs /dev/*mem or /proc. (It will still use some /proc > files if they are available for -e, but it's not required, so it'll > happily run in a jail or chroot). > > The proc stats are now part of eproc (obtained via sysctl) and no longer > needs to beat up the u-page reading code and the problems with that. > > This also has the side effect of disabling 'ps -e' for normal users > *EXCEPT* when looking at their own processes. ie: they can see > environments in processes with their uid, enforced by the ownership of > /proc/*/mem. Root can still see them all, as it can open all /proc/*/mem. This looks like quite an elegant solution to the -e issue. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message