Subject: Re: kern/36227: new emul namei problem with symlinks
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 04/29/2007 17:25:02
The following reply was made to PR kern/36227; it has been noted by GNATS.

From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/36227: new emul namei problem with symlinks
Date: Sun, 29 Apr 2007 18:28:11 +0100

 On Fri, Apr 27, 2007 at 10:05:04PM +0000, Mark Davies wrote:
 >  
 >  Also while playing with this I saw the following which seems odd:
 >  
 >    # cd /emul/linux/etc/
 >    # echo hello > bar
 >    # echo bye > /etc/bar
 >    # ln -s /etc/bar foo
 >    # /emul/linux/bin/cat /etc/foo
 >    hello
 >    # /emul/linux/bin/cat foo
 >    bye
 
 I've been trying to think of an easy way of coding it so that relative
 lookups that hit absolute symlinks inside the emulated root are
 treated the same as absolute lookups.
 I think it needs a check for vn_isunder() in the symlink path and
 (yet) another revamp of what is tested to determine that the emulated
 root should be considered.
 
 	David
 
 -- 
 David Laight: david@l8s.co.uk