4 ms·
Lastly, this document reads as if knowing a full path grants access to that path and its subdirectories. If that's the case ... oy. Indeed. When I read... As
by userbinator 8y ago
Lastly, this document reads as if knowing a full path grants access to that path and its subdirectories. If that's the case ... oy.
Indeed. When I read...
As a consequence, this implies that a handle to a directory can be upgraded arbitrarily to access the entire filesystem.
...I was wondering whether the author even knows what filesystem permissions are and how they work. I say let the filesystem handle resolving relative paths; and let the permissions system handle the check on whether one is allowed to access the referenced object.
- ithkuil 8y agoUser centric permissions are too broad. Classic example: you might not want your browser to ever access your own ssh private keys The topic here is to let a user start a process and pass a restricted view of the file system to that process which in turn can spawn child processes to which it could restrict access even further. In order to make it possible to do useful work it's sometimes necessary to also pass around handles/filedescriptors between processes (possibly within different sandboxes) and it's a good idea that the rules governing the view narrowing are not broken.