aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/common.h
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-02-10 19:43:54 -0500
committerJames Morris <jmorris@namei.org>2010-02-14 17:00:24 -0500
commit847b173ea3d6f50936823d07f2245059bf44713b (patch)
treeb53c6d0536af73a078bcff0375f9f4d837f79bba /security/tomoyo/common.h
parentec8e6a4e062e2edebef91e930c20572c9f4c0dda (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.h15
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);
639int tomoyo_find_next_domain(struct linux_binprm *bprm); 639int tomoyo_find_next_domain(struct linux_binprm *bprm);
640 640
641/* Run garbage collector. */
642void tomoyo_run_gc(void);
643
644void 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". */
647extern struct list_head tomoyo_domain_list; 652extern struct list_head tomoyo_domain_list;
648 653
654extern struct list_head tomoyo_domain_initializer_list;
655extern struct list_head tomoyo_domain_keeper_list;
656extern struct list_head tomoyo_alias_list;
657extern struct list_head tomoyo_globally_readable_list;
658extern struct list_head tomoyo_pattern_list;
659extern struct list_head tomoyo_no_rewrite_list;
660extern struct list_head tomoyo_policy_manager_list;
661extern struct list_head tomoyo_name_list[TOMOYO_MAX_HASH];
662extern struct mutex tomoyo_name_list_lock;
663
649/* Lock for protecting policy. */ 664/* Lock for protecting policy. */
650extern struct mutex tomoyo_policy_lock; 665extern struct mutex tomoyo_policy_lock;
651 666