TOMOYO: Do not call tomoyo_realpath_init unless registered.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sat, 21 Feb 2009 11:40:50 +0000 (20:40 +0900)
committerJames Morris <jmorris@namei.org>
Sun, 22 Feb 2009 22:45:05 +0000 (09:45 +1100)
commit1581e7ddbdd97443a134e1a0cc9d81256baf77a4
tree54134783d9b61dea08b434e0d6e447ac8f8924b2
parent0da0a420bb542b13ebae142109a9d2045ade0cb1
TOMOYO: Do not call tomoyo_realpath_init unless registered.

tomoyo_realpath_init() is unconditionally called by security_initcall().
But nobody will use realpath related functions if TOMOYO is not registered.

So, let tomoyo_init() call tomoyo_realpath_init().

This patch saves 4KB of memory allocation if TOMOYO is not registered.

Signed-off-by: Kentaro Takeda <takedakn@nttdata.co.jp>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Toshiharu Harada <haradats@nttdata.co.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/realpath.c
security/tomoyo/realpath.h
security/tomoyo/tomoyo.c