namei: allow nd_jump_link() to produce errors
authorAleksa Sarai <cyphar@cyphar.com>
Fri, 6 Dec 2019 14:13:28 +0000 (01:13 +1100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Dec 2019 00:09:38 +0000 (19:09 -0500)
commit1bc82070fa2763bdca626fa8bde72b35f11e8960
treec64975083207b96e9d763e592d0ac5432c1cc97d
parentce623f89872df4253719be71531116751eeab85f
namei: allow nd_jump_link() to produce errors

In preparation for LOOKUP_NO_MAGICLINKS, it's necessary to add the
ability for nd_jump_link() to return an error which the corresponding
get_link() caller must propogate back up to the VFS.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
fs/proc/base.c
fs/proc/namespaces.c
include/linux/namei.h
security/apparmor/apparmorfs.c