Subject: Re: openat(2) and friends
To: Rhialto <rhialto@azenomei.knuffel.net>
From: Steinar Hamre <steinarh@pvv.ntnu.no>
List: tech-kern
Date: 03/08/2005 17:09:01
On Tue, Mar 08, 2005 at 03:31:22PM +0100, Rhialto wrote:
> On Tue 08 Mar 2005 at 15:16:23 +0100, Rhialto wrote:
> > I seem to recall that fchdir() had explicit checks against this sort of
> > thing, but I'm not sure where (of couse I should RTFS). Depending on
> > how this is checked, the same check may apply to openat(2) already.
> 
> This is checked in sys_fchdir() in kern/vfs_syscalls.c:
> 
[snip]
> 
> Similar checks are also in sys_fchroot() and sys_chroot(), and in
> kern/uipc_usrreq.c:unp_externalize().

Ok. I'll add it.

	Steinar