Subject: Re: ps /proc changes (CVS commit: src)
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 03/27/1999 17:32:51
In article <19990327105151.A26941@marvin.ece.utexas.edu> bgrayson@marvin.ece.utexas.edu (Brian C. Grayson) writes:
>On Sat, Mar 27, 1999 at 10:44:19AM +0100, Bernd Ernesti wrote:
>>
>> I think that is not enough. You have to check that /proc is an procfs.
>>
>> It is just to easy to fake processes for an intruder without replacing ps.
>
> How about a getmntinfo() call, followed by a check that:
You probably want just a statfs call.
christos