Documentation
¶
Overview ¶
Package plainpath checks a path under an os.Root before a tree that a container wrote is read: every part of the path is looked at with Lstat and must be a plain directory, and the last must be a regular file (or a plain directory, for Dir). A link, a junction, a device or any other special file anywhere on the way is refused, never followed.
os.Root already refuses a link that leads out of the root. This does not rest on that: a Windows build followed one, because os.Root's escape check there depends on reparse-point handling. It also refuses links that stay inside the root, which os.Root follows. The trees it guards are written by a container that has ended before they are read, so nothing races the check.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.