Subject: Re: kern/6062: bind() to unix domain socket doesn't use emul path
To: matthew green <mrg@eterna.com.au>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: netbsd-bugs
Date: 08/30/1998 20:46:18
On Mon, 31 Aug 1998 13:58:23 +1000 
 matthew green <mrg@eterna.com.au> wrote:

 > there is inconsistency between which syscalls in each emulation
 > check the alternative path.  IMO, creat(2) should not be checked,
 > as it is creating new files, not reading pre-existing ones.
 > emulations shouldn't write to their alternative path unless
 > explicitely given.

No, this is totally bogus... What if it wants to create a temp file
in /usr/adm/fooprog/...?  You want to put a /usr/adm on your NetBSD
system?  Not.

The Correct thing happens if the emul shadow dir doesn't exist for the
created file (i.e. it falls back on the real /-rooted path).

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 650 940 5942