Re: [RFC PATCH 2/3] fs: support tasks with a null root or cwd

Christian Brauner <[email protected]>
Newsgroups gmane.linux.nfs,gmane.linux.kernel.cross-arch,gmane.linux.kernel,gmane.linux.file-systems,gmane.linux.kernel.api
Message-ID <20260629-defizit-typisch-maulkorb-53953a5a8510@brauner>
> A task's root directory (`fs->root`) and current working directory
> (`fs->pwd`) are normally established by `chroot(2)`/`pivot_root(2)` and
> `chdir(2)`/`fchdir(2)` (or inherited across `fork(2)`). Allow either to
> instead be the null path, as documented in `struct fs_struct`. The two
> are independent: a task may opt out of one, the other, or both.

No, absolutely we're not going to have tasks with struct path's in their
struct fs_struct that have NULL members in them. struct path is used
insanely widely in the kernel this is just an an open invitation for a
slew of security bugs. Not going to happen.

-- 
Christian Brauner <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.