tomoyo: Fix pathname calculation breakage.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 20 Aug 2014 05:14:04 +0000 (14:14 +0900)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 27 Aug 2014 02:52:09 +0000 (21:52 -0500)
commit8fe7a268b18ebc89203c766b020b9e32f1cfeebf
treede9400f69db6da34c7e3017c1a6bc8ca9f763e04
parent52addcf9d6669fa439387610bc65c92fa0980cef
tomoyo: Fix pathname calculation breakage.

Commit 7177a9c4b509 ("fs: call rename2 if exists") changed
"struct inode_operations"->rename == NULL if
"struct inode_operations"->rename2 != NULL .

TOMOYO needs to check for both ->rename and ->rename2 , or
a system on (e.g.) ext4 filesystem won't boot.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
security/tomoyo/realpath.c