Re:Dot Dot Considered Harmful
by cryptonector on Wednesday November 28, 2018 @06:09PM
(#18556561)
Ok, that works, though you pay a price: you have to keep track of a fair number of such handles. You'll need one for /usr/bin, and for /bin, and all the lib and libexec and share and varstate directories, and /etc. You do get to not let processes see $HOME if you don't want to, and that's very nice.
In a shell one would have to expose a path->handle dictionary for scripts.
If understand correctly in fuchsia "absolute path" is always relative to a filesystem handle so knowing it and being able to use it are pretty similar