diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-02-10 19:42:40 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-02-14 17:00:18 -0500 |
commit | 76bb0895d038be7bcdb6ccfcd2dd7deb30371d6b (patch) | |
tree | 5948c68b08561deb20d155853faed475a15a4235 /security/tomoyo/domain.c | |
parent | bf24fb016c861b7f52be0c36c4cedd3e89afa2e2 (diff) |
TOMOYO: Merge headers.
Gather structures and constants scattered around security/tomoyo/ directory.
This is for preparation for adding garbage collector since garbage collector
needs to know structures and constants which TOMOYO uses.
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/domain.c')
-rw-r--r-- | security/tomoyo/domain.c | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c index 0b8262567809..d60b8a61b0c8 100644 --- a/security/tomoyo/domain.c +++ b/security/tomoyo/domain.c | |||
@@ -10,8 +10,6 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "common.h" | 12 | #include "common.h" |
13 | #include "tomoyo.h" | ||
14 | #include "realpath.h" | ||
15 | #include <linux/binfmts.h> | 13 | #include <linux/binfmts.h> |
16 | 14 | ||
17 | /* Variables definitions.*/ | 15 | /* Variables definitions.*/ |
@@ -59,76 +57,6 @@ struct tomoyo_domain_info tomoyo_kernel_domain; | |||
59 | */ | 57 | */ |
60 | LIST_HEAD(tomoyo_domain_list); | 58 | LIST_HEAD(tomoyo_domain_list); |
61 | 59 | ||
62 | /* | ||
63 | * tomoyo_domain_initializer_entry is a structure which is used for holding | ||
64 | * "initialize_domain" and "no_initialize_domain" entries. | ||
65 | * It has following fields. | ||
66 | * | ||
67 | * (1) "list" which is linked to tomoyo_domain_initializer_list . | ||
68 | * (2) "domainname" which is "a domainname" or "the last component of a | ||
69 | * domainname". This field is NULL if "from" clause is not specified. | ||
70 | * (3) "program" which is a program's pathname. | ||
71 | * (4) "is_deleted" is a bool which is true if marked as deleted, false | ||
72 | * otherwise. | ||
73 | * (5) "is_not" is a bool which is true if "no_initialize_domain", false | ||
74 | * otherwise. | ||
75 | * (6) "is_last_name" is a bool which is true if "domainname" is "the last | ||
76 | * component of a domainname", false otherwise. | ||
77 | */ | ||
78 | struct tomoyo_domain_initializer_entry { | ||
79 | struct list_head list; | ||
80 | const struct tomoyo_path_info *domainname; /* This may be NULL */ | ||
81 | const struct tomoyo_path_info *program; | ||
82 | bool is_deleted; | ||
83 | bool is_not; /* True if this entry is "no_initialize_domain". */ | ||
84 | /* True if the domainname is tomoyo_get_last_name(). */ | ||
85 | bool is_last_name; | ||
86 | }; | ||
87 | |||
88 | /* | ||
89 | * tomoyo_domain_keeper_entry is a structure which is used for holding | ||
90 | * "keep_domain" and "no_keep_domain" entries. | ||
91 | * It has following fields. | ||
92 | * | ||
93 | * (1) "list" which is linked to tomoyo_domain_keeper_list . | ||
94 | * (2) "domainname" which is "a domainname" or "the last component of a | ||
95 | * domainname". | ||
96 | * (3) "program" which is a program's pathname. | ||
97 | * This field is NULL if "from" clause is not specified. | ||
98 | * (4) "is_deleted" is a bool which is true if marked as deleted, false | ||
99 | * otherwise. | ||
100 | * (5) "is_not" is a bool which is true if "no_initialize_domain", false | ||
101 | * otherwise. | ||
102 | * (6) "is_last_name" is a bool which is true if "domainname" is "the last | ||
103 | * component of a domainname", false otherwise. | ||
104 | */ | ||
105 | struct tomoyo_domain_keeper_entry { | ||
106 | struct list_head list; | ||
107 | const struct tomoyo_path_info *domainname; | ||
108 | const struct tomoyo_path_info *program; /* This may be NULL */ | ||
109 | bool is_deleted; | ||
110 | bool is_not; /* True if this entry is "no_keep_domain". */ | ||
111 | /* True if the domainname is tomoyo_get_last_name(). */ | ||
112 | bool is_last_name; | ||
113 | }; | ||
114 | |||
115 | /* | ||
116 | * tomoyo_alias_entry is a structure which is used for holding "alias" entries. | ||
117 | * It has following fields. | ||
118 | * | ||
119 | * (1) "list" which is linked to tomoyo_alias_list . | ||
120 | * (2) "original_name" which is a dereferenced pathname. | ||
121 | * (3) "aliased_name" which is a symlink's pathname. | ||
122 | * (4) "is_deleted" is a bool which is true if marked as deleted, false | ||
123 | * otherwise. | ||
124 | */ | ||
125 | struct tomoyo_alias_entry { | ||
126 | struct list_head list; | ||
127 | const struct tomoyo_path_info *original_name; | ||
128 | const struct tomoyo_path_info *aliased_name; | ||
129 | bool is_deleted; | ||
130 | }; | ||
131 | |||
132 | /** | 60 | /** |
133 | * tomoyo_get_last_name - Get last component of a domainname. | 61 | * tomoyo_get_last_name - Get last component of a domainname. |
134 | * | 62 | * |