projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ceeca5
)
get rid of ->mnt_parent in tomoyo/realpath
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 5 Feb 2010 14:37:21 +0000
(09:37 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 3 Mar 2010 19:08:00 +0000
(14:08 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/tomoyo/realpath.c
patch
|
blob
|
history
diff --git
a/security/tomoyo/realpath.c
b/security/tomoyo/realpath.c
index 6a4f8495f2816e6734edc891a85f80e96a5076a0..455bc391b76ddb242dea60d354eb1d0507bfdecf 100644
(file)
--- 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)