Skip to content
Snippets Groups Projects
Commit f2683bd8 authored by Al Viro's avatar Al Viro
Browse files

[PATCH] fix d_absolute_path() interplay with fsmount()


stuff in anon namespace should be treated as unattached.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5f9e832c
No related branches found
No related tags found
No related merge requests found
......@@ -116,8 +116,10 @@ static int prepend_path(const struct path *path,
vfsmnt = &mnt->mnt;
continue;
}
if (!error)
error = is_mounted(vfsmnt) ? 1 : 2;
if (is_mounted(vfsmnt) && !is_anon_ns(mnt->mnt_ns))
error = 1; // absolute root
else
error = 2; // detached or not attached yet
break;
}
parent = dentry->d_parent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment