diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-02-10 19:43:54 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-02-14 17:00:24 -0500 |
commit | 847b173ea3d6f50936823d07f2245059bf44713b (patch) | |
tree | b53c6d0536af73a078bcff0375f9f4d837f79bba /security/tomoyo/common.h | |
parent | ec8e6a4e062e2edebef91e930c20572c9f4c0dda (diff) |
TOMOYO: Add garbage collector.
This patch adds garbage collector support to TOMOYO.
Elements are protected by "struct srcu_struct tomoyo_ss".
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/common.h')
-rw-r--r-- | security/tomoyo/common.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index 521b4b5addaf..1c8c97a4c069 100644 --- a/security/tomoyo/common.h +++ b/security/tomoyo/common.h | |||
@@ -638,6 +638,11 @@ int tomoyo_check_rewrite_permission(struct tomoyo_domain_info *domain, | |||
638 | struct file *filp); | 638 | struct file *filp); |
639 | int tomoyo_find_next_domain(struct linux_binprm *bprm); | 639 | int tomoyo_find_next_domain(struct linux_binprm *bprm); |
640 | 640 | ||
641 | /* Run garbage collector. */ | ||
642 | void tomoyo_run_gc(void); | ||
643 | |||
644 | void tomoyo_memory_free(void *ptr); | ||
645 | |||
641 | /********** External variable definitions. **********/ | 646 | /********** External variable definitions. **********/ |
642 | 647 | ||
643 | /* Lock for GC. */ | 648 | /* Lock for GC. */ |
@@ -646,6 +651,16 @@ extern struct srcu_struct tomoyo_ss; | |||
646 | /* The list for "struct tomoyo_domain_info". */ | 651 | /* The list for "struct tomoyo_domain_info". */ |
647 | extern struct list_head tomoyo_domain_list; | 652 | extern struct list_head tomoyo_domain_list; |
648 | 653 | ||
654 | extern struct list_head tomoyo_domain_initializer_list; | ||
655 | extern struct list_head tomoyo_domain_keeper_list; | ||
656 | extern struct list_head tomoyo_alias_list; | ||
657 | extern struct list_head tomoyo_globally_readable_list; | ||
658 | extern struct list_head tomoyo_pattern_list; | ||
659 | extern struct list_head tomoyo_no_rewrite_list; | ||
660 | extern struct list_head tomoyo_policy_manager_list; | ||
661 | extern struct list_head tomoyo_name_list[TOMOYO_MAX_HASH]; | ||
662 | extern struct mutex tomoyo_name_list_lock; | ||
663 | |||
649 | /* Lock for protecting policy. */ | 664 | /* Lock for protecting policy. */ |
650 | extern struct mutex tomoyo_policy_lock; | 665 | extern struct mutex tomoyo_policy_lock; |
651 | 666 | ||