Skip to content
Commit c9a0f75d authored by Al Viro's avatar Al Viro
Browse files

follow_dotdot{,_rcu}(): lift LOOKUP_BENEATH checks out of loop



Behaviour change: LOOKUP_BENEATH lookup of .. in absolute root
yields an error even if it's not the process' root.  That's
possible only if you'd managed to escape chroot jail by way of
procfs symlinks, but IMO the resulting behaviour is not worse -
more consistent and easier to describe:
	".." in root is "stay where you are", uness LOOKUP_BENEATH
	has been given, in which case it's "fail with EXDEV".

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent abc2c632
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment