Expand description
Reading a file only if it really is inside a folder, decided on the open file rather than its name.
A container agent can change its mounted workspace while srv reads it. Checking a path (resolving it) and then opening the same path leaves a gap: a folder or file swapped for a symlink in between sends the read outside the workspace. So the file is opened first, and the check is on what the open handle is: its real path, as the system resolved it when it opened. The handle keeps pointing at that file, so nothing swapped afterwards changes what is read.