freebsd-nq/bin/ps
Peter Wemm 821079e9be 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.
1999-11-17 13:37:30 +00:00
..
extern.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
fmt.c $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
keyword.c $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
Makefile I'm probably jumping the gun, but what the heck, this is -current. 1999-11-17 13:37:30 +00:00
nlist.c Fixed breakage of %CPU and %MEM in the previous commit. sysctlbyname() 1998-09-10 18:06:28 +00:00
print.c $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
ps.1 $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00
ps.c Use eproc.e_stats, not a series of crude hacks to fetch it from the u-area. 1999-11-17 12:52:42 +00:00
ps.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00