Re:Docker is vulnerable to a symlink-race attack
by cyphar on Tuesday May 28, 2019 @07:23PM
(#20035414)
Small correction -- you'd want to O_PATH, then verify, and then do a real open (by doing a re-open through /proc/self/fd). Sometimes, tricking you into opening a file is sufficient to cause problems.
[1] https://github.com/bluehost/apache-symlink-patch