aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/tomoyo/realpath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c
index 85e6e31dd1e5..e7832448d721 100644
--- a/security/tomoyo/realpath.c
+++ b/security/tomoyo/realpath.c
@@ -295,7 +295,8 @@ char *tomoyo_realpath_from_path(const struct path *path)
295 * or dentry without vfsmount. 295 * or dentry without vfsmount.
296 */ 296 */
297 if (!path->mnt || 297 if (!path->mnt ||
298 (!inode->i_op->rename)) 298 (!inode->i_op->rename &&
299 !(sb->s_type->fs_flags & FS_REQUIRES_DEV)))
299 pos = tomoyo_get_local_path(path->dentry, buf, 300 pos = tomoyo_get_local_path(path->dentry, buf,
300 buf_len - 1); 301 buf_len - 1);
301 /* Get absolute name for the rest. */ 302 /* Get absolute name for the rest. */