diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-06-17 03:53:24 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-08-02 01:34:40 -0400 |
commit | a230f9e7121cbcbfe23bd5a630abf6b53cece555 (patch) | |
tree | a81820f41d57ffd8704aaef4331f696030d7ba77 /security/tomoyo/memory.c | |
parent | a98aa4debe2728abb3353e35fc5d110dcc0d7f0d (diff) |
TOMOYO: Use array of "struct list_head".
Assign list id and make the lists as array of "struct list_head".
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/memory.c')
-rw-r--r-- | security/tomoyo/memory.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/security/tomoyo/memory.c b/security/tomoyo/memory.c index 8de5333109aa..249835abdf4e 100644 --- a/security/tomoyo/memory.c +++ b/security/tomoyo/memory.c | |||
@@ -153,6 +153,10 @@ void __init tomoyo_mm_init(void) | |||
153 | { | 153 | { |
154 | int idx; | 154 | int idx; |
155 | 155 | ||
156 | for (idx = 0; idx < TOMOYO_MAX_POLICY; idx++) | ||
157 | INIT_LIST_HEAD(&tomoyo_policy_list[idx]); | ||
158 | for (idx = 0; idx < TOMOYO_MAX_GROUP; idx++) | ||
159 | INIT_LIST_HEAD(&tomoyo_group_list[idx]); | ||
156 | for (idx = 0; idx < TOMOYO_MAX_HASH; idx++) | 160 | for (idx = 0; idx < TOMOYO_MAX_HASH; idx++) |
157 | INIT_LIST_HEAD(&tomoyo_name_list[idx]); | 161 | INIT_LIST_HEAD(&tomoyo_name_list[idx]); |
158 | INIT_LIST_HEAD(&tomoyo_kernel_domain.acl_info_list); | 162 | INIT_LIST_HEAD(&tomoyo_kernel_domain.acl_info_list); |