diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2009-02-21 06:40:50 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-02-22 17:45:05 -0500 |
commit | 1581e7ddbdd97443a134e1a0cc9d81256baf77a4 (patch) | |
tree | 54134783d9b61dea08b434e0d6e447ac8f8924b2 /security/tomoyo/realpath.h | |
parent | 0da0a420bb542b13ebae142109a9d2045ade0cb1 (diff) |
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>
Diffstat (limited to 'security/tomoyo/realpath.h')
-rw-r--r-- | security/tomoyo/realpath.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/tomoyo/realpath.h b/security/tomoyo/realpath.h index 0ea541fcb53c..7ec9fc9cbc07 100644 --- a/security/tomoyo/realpath.h +++ b/security/tomoyo/realpath.h | |||
@@ -60,4 +60,7 @@ int tomoyo_read_memory_counter(struct tomoyo_io_buffer *head); | |||
60 | /* Set memory quota. */ | 60 | /* Set memory quota. */ |
61 | int tomoyo_write_memory_quota(struct tomoyo_io_buffer *head); | 61 | int tomoyo_write_memory_quota(struct tomoyo_io_buffer *head); |
62 | 62 | ||
63 | /* Initialize realpath related code. */ | ||
64 | void __init tomoyo_realpath_init(void); | ||
65 | |||
63 | #endif /* !defined(_SECURITY_TOMOYO_REALPATH_H) */ | 66 | #endif /* !defined(_SECURITY_TOMOYO_REALPATH_H) */ |