News for hackers. Stuff that matters.
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.

Re:Dot Dot Considered Harmful by Faark on Thursday November 29, 2018 @03:24AM (#18558836)
You mean key->handle dict? Most environment variables on my windows seem to be what you are describing, except currently being path strings instead of file system handles.