| + |
it was possible to improperly access the parent directory of a restricted filesystem root created with `os.DirFS`. Calling `Open("../")` on such a filesystem could open the parent directory itself, violating expected directory confinement. This escape did not allow access to ancestor directories beyond the parent, nor to files within the parent directory. |
| - |
It was possible to improperly access the parent directory of an os.Root |
| - |
by opening a filename ending in "../". For example, Root.Open("../") would |
| - |
open the parent directory of the Root. This escape only permits opening |
| - |
the parent directory itself, not ancestors of the parent or files contained |
| - |
within the parent. |
| |
|
| - |
Root now correctly returns an error in this case. |
| + |
This behavior has been corrected to return an error for such paths. |