Post #1496101
2026-02-17 07:56 UTC
@dascandy @cyphar @brauner
The difficulties in correctly implementing path traversal begins with even deciding on something as simple as if `../` should be interpreted within linked list of path components (i.e. collapsing & removing parts of the path spec), or if they should be interpreted within the global namespace.
There's no definitive specification how to handle this, so behavior may be different between programs.
Replies (1)
-
@datenwolf@chaos.social 2026-02-17 08:23
@dascandy @cyphar @brauner Decide: Which one is correct? Bonus points: What happens if I delete the `aa` subtree and then subsequently do `cd ..` in the shell? According to the kernel the shell process is within the `bb` tree. The shell "thinks" it's all over both trees. We could of course define that the kernel's view of things (as exposed by proc) is the ultimate truth, but this would break a lot of programs with different interpretations.