Re: [PATCH 1/3] namei: add LOOKUP_DFD_ROOT to use dfd as root

2016-07-05 Thread Andrey Vagin
On Fri, Jul 1, 2016 at 5:55 PM, Omar Sandoval wrote: > On Tue, Jun 28, 2016 at 10:38:28AM -0700, Andrey Vagin wrote: >> The problem is that a pathname can contain absolute symlinks and now >> they are resolved relative to the current root. >> >> If we want to open a file in another mount namespace

Re: [PATCH 1/3] namei: add LOOKUP_DFD_ROOT to use dfd as root

2016-07-01 Thread Omar Sandoval
On Tue, Jun 28, 2016 at 10:38:28AM -0700, Andrey Vagin wrote: > The problem is that a pathname can contain absolute symlinks and now > they are resolved relative to the current root. > > If we want to open a file in another mount namespaces and we have a file > descriptor to its root directory, we

[PATCH 1/3] namei: add LOOKUP_DFD_ROOT to use dfd as root

2016-06-28 Thread Andrey Vagin
The problem is that a pathname can contain absolute symlinks and now they are resolved relative to the current root. If we want to open a file in another mount namespaces and we have a file descriptor to its root directory, we probably want to resolve pathname in the target mount namespace. For th