]> git.baikalelectronics.ru Git - kernel.git/commit
TOMOYO: Fix pathname handling of disconnected paths.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 8 Dec 2011 12:24:06 +0000 (21:24 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Dec 2011 21:18:12 +0000 (13:18 -0800)
commit95b61e0c540e4a370b6588db567fab3fa697b24b
treedaec3f125671eeb36a55ca0d00c3473af2c8872c
parent50b89e5ec586bf72484eb5ad43d3df1136fd6088
TOMOYO: Fix pathname handling of disconnected paths.

Current tomoyo_realpath_from_path() implementation returns strange pathname
when calculating pathname of a file which belongs to lazy unmounted tree.
Use local pathname rather than strange absolute pathname in that case.

Also, this patch fixes a regression by commit 9e27708a "fix apparmor
dereferencing potentially freed dentry, sanitize __d_path() API".

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/tomoyo/realpath.c