ps -e without procfs(5).

Peter Wemm peter at wemm.org
Tue Nov 30 16:28:06 PST 2004


On Tuesday 30 November 2004 03:12 pm, Pawel Jakub Dawidek wrote:
> Hello.
>
> I need some testing for this patch:
>
> 	http://people.freebsd.org/~pjd/patches/ps-e.patch
>
> It allows to use 'ps -e' without procfs(5) mounted.
> I decided to disable this functionality by default, because procfs(5)
> is also disabled by default and some people may already depend on the
> fact, that environment is a secret by default.
> To see the effects, you need to increase sysctl
> kern.ps_env_cache_limit to for example 1024.

ps -e is "live" and reads the environment from the process.  It looks 
like your patch adds a once-only snapshot of the exec-time values..

I've only ever used "ps -e" to figure out what the current live values 
are, I'd be more interested in a ptrace based replacement..  

-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


More information about the freebsd-arch mailing list