Re: [RFC] Null Namespaces
Andy Lutomirski <[email protected]> Wed, 24 Jun 2026 16:20:09 -0700
| Newsgroups | org.kernel.vger.linux-api,org.kernel.vger.linux-arch,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CALCETrU3bgUxp0k1y-U-uL0-fW2016Gmsyu9O_=830czEUGMcQ@mail.gmail.com> |
On Wed, Jun 24, 2026 at 4:06 PM Andy Lutomirski <[email protected]> wrote: > > On Wed, Jun 24, 2026 at 3:52 PM John Ericson <[email protected]> wrote: > > - null current working directory: relative paths with traditional, > > non-`*at` system calls (and `*at` ones using `AT_FDCWD`) don't work. > > It's perfectly valid to cd to a directory that does not belong to > one's namespace. We have fchdir. What's wrong with letting it > continue working? > > Regardless of that, the current directory either needs to be a > directory or to be nothing at all, and if we support the latter, we > need to figure out what /proc will show. Thinking about this more: I think that handling CWD might actually be a prerequisite for the series and has little to do with namespaces. Maybe try adding, as a standalone feature, the ability to have a null CWD. Define semantics and see what the implementation looks like. Then, if you add null namespaces, you could optionally make transitioning to a null namespace set a null CWD. Or those features could be orthogonal.