diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-01-04 16:39:37 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-01-10 17:27:40 -0500 |
commit | cd7bec6ad80188394a8ea857ff1aa3512fc2282a (patch) | |
tree | 598e7d59c29966e0d8fa8abf24eb51bbb2f567a6 /security/tomoyo/common.h | |
parent | e41035a996356c257183e53a70abfb46fa84908b (diff) |
TOMOYO: Remove memory pool for list elements.
Currently, TOMOYO allocates memory for list elements from memory pool allocated
by kmalloc(PAGE_SIZE). But that makes it difficult to kfree() when garbage
collector is added. Thus, remove memory pool and use kmalloc(sizeof()).
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/common.h')
-rw-r--r-- | security/tomoyo/common.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index 874abf8df43e..610a6a056828 100644 --- a/security/tomoyo/common.h +++ b/security/tomoyo/common.h | |||
@@ -376,8 +376,6 @@ struct tomoyo_domain_info *tomoyo_find_or_assign_new_domain(const char * | |||
376 | /* Check mode for specified functionality. */ | 376 | /* Check mode for specified functionality. */ |
377 | unsigned int tomoyo_check_flags(const struct tomoyo_domain_info *domain, | 377 | unsigned int tomoyo_check_flags(const struct tomoyo_domain_info *domain, |
378 | const u8 index); | 378 | const u8 index); |
379 | /* Allocate memory for structures. */ | ||
380 | void *tomoyo_alloc_acl_element(const u8 acl_type); | ||
381 | /* Fill in "struct tomoyo_path_info" members. */ | 379 | /* Fill in "struct tomoyo_path_info" members. */ |
382 | void tomoyo_fill_path_info(struct tomoyo_path_info *ptr); | 380 | void tomoyo_fill_path_info(struct tomoyo_path_info *ptr); |
383 | /* Run policy loader when /sbin/init starts. */ | 381 | /* Run policy loader when /sbin/init starts. */ |