Subject: Re: fd 0/1/2
To: None <itojun@iijlab.net>
From: Todd C. Miller <Todd.Miller@courtesan.com>
List: tech-security
Date: 05/14/2002 10:32:57
In message <22787.1021371269@itojun.org>
	so spake  (itojun):

> 	sorry for dumb question - does it affect us?

----------------------------
revision 1.152
date: 2002/04/23 15:11:25;  author: christos;  state: Exp;  lines: +6 -2
From OpenBSD, via FreeBSD: If a set{u,g}id binary is invoked with fd < 3
closed, open those fds to /dev/null.

XXX: This needs to be fixed in a better way. The kernel should not need to
know about /dev/null or special case 0, 1, 2.
----------------------------

And fdcheckstd() in kern_descrip.c appears to do proper error
checking.

 - todd