]> git.baikalelectronics.ru Git - kernel.git/commit
make sure that mntns_install() doesn't end up with referral for root
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 15 Apr 2017 21:31:22 +0000 (17:31 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 Apr 2017 18:05:36 +0000 (14:05 -0400)
commitf37c4c573ef7e43d32ffeb6b5f410ff42dfa3e32
treeea39abd6e1941de602264b24ee18c82f12c01c04
parent40bad38074c7cf6cd4a78a0ac36f24046a37480b
make sure that mntns_install() doesn't end up with referral for root

new flag: LOOKUP_DOWN.  If the starting point is overmounted, cross
into whatever's mounted on top, triggering referrals et.al.

Use that instead of follow_down_one() loop in mntns_install(), handle
errors properly.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
fs/namespace.c
include/linux/namei.h