• Al Viro's avatar
    follow_dotdot{,_rcu}(): lift LOOKUP_BENEATH checks out of loop · c9a0f75d
    Al Viro authored
    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>
    c9a0f75d
namei.c 120 KB