From: Al Viro Date: Fri, 5 Feb 2010 14:37:21 +0000 (-0500) Subject: get rid of ->mnt_parent in tomoyo/realpath X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=440b3c6c160f7d0a985f24ad1f4c24e00ee2d936;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git get rid of ->mnt_parent in tomoyo/realpath Signed-off-by: Al Viro --- 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, 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)