diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/tomoyo/realpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c index 6a4f8495f281..455bc391b76d 100644 --- a/security/tomoyo/realpath.c +++ b/security/tomoyo/realpath.c | |||
@@ -96,7 +96,7 @@ int tomoyo_realpath_from_path2(struct path *path, char *newname, | |||
96 | sp = __d_path(path, &ns_root, newname, newname_len); | 96 | sp = __d_path(path, &ns_root, newname, newname_len); |
97 | spin_unlock(&dcache_lock); | 97 | spin_unlock(&dcache_lock); |
98 | /* Prepend "/proc" prefix if using internal proc vfs mount. */ | 98 | /* Prepend "/proc" prefix if using internal proc vfs mount. */ |
99 | if (!IS_ERR(sp) && (path->mnt->mnt_parent == path->mnt) && | 99 | if (!IS_ERR(sp) && (path->mnt->mnt_flags & MNT_INTERNAL) && |
100 | (strcmp(path->mnt->mnt_sb->s_type->name, "proc") == 0)) { | 100 | (strcmp(path->mnt->mnt_sb->s_type->name, "proc") == 0)) { |
101 | sp -= 5; | 101 | sp -= 5; |
102 | if (sp >= newname) | 102 | if (sp >= newname) |