Skip to content

Commit

Permalink
get rid of ->mnt_parent in tomoyo/realpath
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Mar 3, 2010
1 parent 0ceeca5 commit 440b3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/tomoyo/realpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 440b3c6

Please sign in to comment.