dect
/
linux-2.6
Archived
13
0
Fork 0

get rid of ->mnt_parent in tomoyo/realpath

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2010-02-05 09:37:21 -05:00
parent 0ceeca5a08
commit 440b3c6c16
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ int tomoyo_realpath_from_path2(struct path *path, char *newname,
sp = __d_path(path, &ns_root, newname, newname_len);
spin_unlock(&dcache_lock);
/* Prepend "/proc" prefix if using internal proc vfs mount. */
if (!IS_ERR(sp) && (path->mnt->mnt_parent == path->mnt) &&
if (!IS_ERR(sp) && (path->mnt->mnt_flags & MNT_INTERNAL) &&
(strcmp(path->mnt->mnt_sb->s_type->name, "proc") == 0)) {
sp -= 5;
if (sp >= newname)