Lines Matching refs:root
171 static int get_path_anchor(int fd, struct path *root) in get_path_anchor() argument
177 *root = fd_file(f)->f_path; in get_path_anchor()
178 path_get(root); in get_path_anchor()
183 get_fs_pwd(current->fs, root); in get_path_anchor()
188 pidfs_get_root(root); in get_path_anchor()
199 struct dentry *d, *root = ctx->root.dentry; in vfs_dentry_acceptable() local
200 struct mnt_idmap *idmap = mnt_idmap(ctx->root.mnt); in vfs_dentry_acceptable()
203 if (!root) in vfs_dentry_acceptable()
219 while (d != root && !IS_ROOT(d)) { in vfs_dentry_acceptable()
240 if (!(ctx->flags & HANDLE_CHECK_SUBTREE) || d == root) in vfs_dentry_acceptable()
248 WARN_ON_ONCE(d != root && d != root->d_sb->s_root); in vfs_dentry_acceptable()
257 struct vfsmount *mnt = ctx->root.mnt; in do_handle_to_path()
279 struct path *root = &ctx->root; in may_decode_fh() local
308 if (ns_capable(root->mnt->mnt_sb->s_user_ns, CAP_SYS_ADMIN)) in may_decode_fh()
310 else if (is_mounted(root->mnt) && in may_decode_fh()
311 ns_capable(real_mount(root->mnt)->mnt_ns->user_ns, in may_decode_fh()
313 !has_locked_children(real_mount(root->mnt), root->dentry)) in may_decode_fh()
346 retval = get_path_anchor(mountdirfd, &ctx.root); in handle_to_path()
350 eops = ctx.root.mnt->mnt_sb->s_export_op; in handle_to_path()
389 path_put(&ctx.root); in handle_to_path()