Subject: Re: better w(1)
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Chris G. Demetriou <cgd@netbsd.org>
List: current-users
Date: 06/21/1999 11:16:43
Jason Thorpe <thorpej@nas.nasa.gov> writes:
>  > While I think of it, on a semi-related note, how close is ps(1) to being
>  > not-setgid with both procfs & sysctl's?
> 
> It's setgid() so that it can read the environ, args, proctitle of other
> processes.
> 
> Just to get process info, it doesn't need it at all, for the liver kernel
> case.

However, the source code requires it anyway.  8-)



cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.