Skip to main content

Module beneath

Module beneath 

Source
Expand description

Reading a package out of a container agent’s workspace without ever following a link.

The workspace is the agent’s to change while it is read. Checking a path and then opening it leaves a gap in which a folder on the way is swapped for a link to somewhere else, so every step here is made relative to a folder already open (openat with O_NOFOLLOW): what is open is what was named, and a link anywhere on the way is an error rather than a detour.