summaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
authorAl Viro2019-05-12 23:23:30 +0200
committerAl Viro2019-05-25 23:59:58 +0200
commitfd912087f4a897cfdf8274f8085c501742638be2 (patch)
treef9c4204ac11ce422bfc33475b202544e0b0fcc9f /fs/internal.h
parentmove the capability checks from sget_userns() to legacy_get_tree() (diff)
downloadkernel-qcow2-linux-fd912087f4a897cfdf8274f8085c501742638be2.tar.gz
kernel-qcow2-linux-fd912087f4a897cfdf8274f8085c501742638be2.tar.xz
kernel-qcow2-linux-fd912087f4a897cfdf8274f8085c501742638be2.zip
legacy_get_tree(): pass fc->user_ns to mount_capable()
guaranteed to be equal to current_user_ns() here - it has not been changed since alloc_fs_context() (nothing in legacy methods changes it) and since we don't have SB_SUBMOUNT, that must've been FS_CONTEXT_FOR_MOUNT. And in that case we have fc->user_ns set to fc->cred->user_ns, i.e. current_cred()->user_ns, i.e. current_user_ns() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/internal.h')
0 files changed, 0 insertions, 0 deletions