vfs: guard against altroot pointing to not a directory pwd_altroot(): avoid creating new pwd structure if altroot does not change chaltroot(2): new syscall to change the altroot AKA ABI root for native processes chaltroot(2): make accessible to userspace
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
This is a proposal for now, I want to discuss do we want this feature exposed to the native processes at all.
I thought about putting it under e.g. procctl(2), but it seems to not be a natural place.
I believe its immediate use is to allow much easier testing of the namei(9) changes around altroot behavior, in particular for the fixes dteske@ is working on in D58855 and D59990.
On the other hand, it is not obvious if it is useful for something else, but who knows where users end up with.
The changes to pwd_altroot(9) itself could be considered as an independent bug fixes anyway.