[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can you trust "ps ax" in 3.0?

On Tue, Dec 11, 2001 at 08:36:04AM +0000, George Shaffer wrote:

> I can think of four things that could account for this: 1) ps has 
> hard coded output for sendmail, 2) a process can control how it is 
> displayed by ps, or 3) 2 has always been true and we just didn't 
> know it.

It's 3), see setproctitle(3). The initial part is always the last
component of the program name, at least I'm not aware of any way a
non-root process can circumvent that.


Visit your host, monkey.org