Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Brian C. Grayson <bgrayson@netbsd.org>
List: source-changes
Date: 03/27/1999 16:46:48
Module Name:	src
Committed By:	bgrayson
Date:		Sun Mar 28 00:46:47 UTC 1999

Modified Files:
	src/bin/ps: procfs_ops.c
Log Message:
- Be really paranoid.  Any time we open a file that is in /proc, run
fstatfs() on the open file to verify that no intruder has mounted
something on portions of /proc.  This will catch, for instance,
"mount_null /tmp /proc/1378".  We already do 5 syscalls per
process, so one more won't hurt :) ...  and safety is better than
performance when ps is otherwise broken.
- Also added a few close()'s at early returns, to avoid chewing up fd's.