Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 1999 10:58:00 -0500
From:      Greg Lehey <grog@mojave.sitaranetworks.com>
To:        Peter Wemm <peter@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/bin/ps Makefile
Message-ID:  <19991117105800.17261@mojave.sitaranetworks.com>
In-Reply-To: <199911171337.FAA17140@freefall.freebsd.org>; from Peter Wemm on Wed, Nov 17, 1999 at 05:37:30AM -0800
References:  <199911171337.FAA17140@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991117105800.17261>