lkml.org 
[lkml]   [1999]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: nfsd Security: /// bad export. error
Date
From
>>>Philippe Troin said:
> "G. Allen Morris III" <gam3@ixlabs.com> writes:
>
> I'm not sure I understand what you mean here...
> The walk up happens in fh_verify by following dentry->d_parent.
> But the export ex_dentry pointer never gets updated AFAIK.
>
> How can two dentries referencing the same point in the fs can co-exist
> in the same kernel ?

Take path `/a/b' for example. The original detry branch looks like

'/' -> 'a' -> 'b' where the ino's are: 2, 3, and 4 respectively.

When nfsd then tries to rebuild the dentry it creates:

'/' -> '..' -> '..' where the ino's are 4, 3, and 2 respectively.

They are different paths. (This isn't quite what happens, but it
is the basic idea.)

---------------------------------
G. Allen Morris III

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.044 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site