diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-06-24 22:16:00 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-08-02 01:34:54 -0400 |
commit | e2bf69077acefee5247bb661faac2552d29ba7ba (patch) | |
tree | 946adb588df8647f2476fb2f66996e6231521687 /security/tomoyo/gc.c | |
parent | 8e5686874bcb882f69d5c04e6b38dc92b97facea (diff) |
TOMOYO: Rename symbols.
Use shorter name in order to make it easier to fit 80 columns limit.
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/gc.c')
-rw-r--r-- | security/tomoyo/gc.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/security/tomoyo/gc.c b/security/tomoyo/gc.c index 254ac1145552..a877e4c3b101 100644 --- a/security/tomoyo/gc.c +++ b/security/tomoyo/gc.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <linux/kthread.h> | 11 | #include <linux/kthread.h> |
12 | #include <linux/slab.h> | 12 | #include <linux/slab.h> |
13 | 13 | ||
14 | struct tomoyo_gc_entry { | 14 | struct tomoyo_gc { |
15 | struct list_head list; | 15 | struct list_head list; |
16 | int type; | 16 | int type; |
17 | struct list_head *element; | 17 | struct list_head *element; |
@@ -22,7 +22,7 @@ static DEFINE_MUTEX(tomoyo_gc_mutex); | |||
22 | /* Caller holds tomoyo_policy_lock mutex. */ | 22 | /* Caller holds tomoyo_policy_lock mutex. */ |
23 | static bool tomoyo_add_to_gc(const int type, struct list_head *element) | 23 | static bool tomoyo_add_to_gc(const int type, struct list_head *element) |
24 | { | 24 | { |
25 | struct tomoyo_gc_entry *entry = kzalloc(sizeof(*entry), GFP_ATOMIC); | 25 | struct tomoyo_gc *entry = kzalloc(sizeof(*entry), GFP_ATOMIC); |
26 | if (!entry) | 26 | if (!entry) |
27 | return false; | 27 | return false; |
28 | entry->type = type; | 28 | entry->type = type; |
@@ -34,21 +34,21 @@ static bool tomoyo_add_to_gc(const int type, struct list_head *element) | |||
34 | 34 | ||
35 | static void tomoyo_del_allow_read(struct list_head *element) | 35 | static void tomoyo_del_allow_read(struct list_head *element) |
36 | { | 36 | { |
37 | struct tomoyo_globally_readable_file_entry *ptr = | 37 | struct tomoyo_readable_file *ptr = |
38 | container_of(element, typeof(*ptr), head.list); | 38 | container_of(element, typeof(*ptr), head.list); |
39 | tomoyo_put_name(ptr->filename); | 39 | tomoyo_put_name(ptr->filename); |
40 | } | 40 | } |
41 | 41 | ||
42 | static void tomoyo_del_file_pattern(struct list_head *element) | 42 | static void tomoyo_del_file_pattern(struct list_head *element) |
43 | { | 43 | { |
44 | struct tomoyo_pattern_entry *ptr = | 44 | struct tomoyo_no_pattern *ptr = |
45 | container_of(element, typeof(*ptr), head.list); | 45 | container_of(element, typeof(*ptr), head.list); |
46 | tomoyo_put_name(ptr->pattern); | 46 | tomoyo_put_name(ptr->pattern); |
47 | } | 47 | } |
48 | 48 | ||
49 | static void tomoyo_del_no_rewrite(struct list_head *element) | 49 | static void tomoyo_del_no_rewrite(struct list_head *element) |
50 | { | 50 | { |
51 | struct tomoyo_no_rewrite_entry *ptr = | 51 | struct tomoyo_no_rewrite *ptr = |
52 | container_of(element, typeof(*ptr), head.list); | 52 | container_of(element, typeof(*ptr), head.list); |
53 | tomoyo_put_name(ptr->pattern); | 53 | tomoyo_put_name(ptr->pattern); |
54 | } | 54 | } |
@@ -63,7 +63,7 @@ static void tomoyo_del_transition_control(struct list_head *element) | |||
63 | 63 | ||
64 | static void tomoyo_del_aggregator(struct list_head *element) | 64 | static void tomoyo_del_aggregator(struct list_head *element) |
65 | { | 65 | { |
66 | struct tomoyo_aggregator_entry *ptr = | 66 | struct tomoyo_aggregator *ptr = |
67 | container_of(element, typeof(*ptr), head.list); | 67 | container_of(element, typeof(*ptr), head.list); |
68 | tomoyo_put_name(ptr->original_name); | 68 | tomoyo_put_name(ptr->original_name); |
69 | tomoyo_put_name(ptr->aggregated_name); | 69 | tomoyo_put_name(ptr->aggregated_name); |
@@ -71,7 +71,7 @@ static void tomoyo_del_aggregator(struct list_head *element) | |||
71 | 71 | ||
72 | static void tomoyo_del_manager(struct list_head *element) | 72 | static void tomoyo_del_manager(struct list_head *element) |
73 | { | 73 | { |
74 | struct tomoyo_policy_manager_entry *ptr = | 74 | struct tomoyo_manager *ptr = |
75 | container_of(element, typeof(*ptr), head.list); | 75 | container_of(element, typeof(*ptr), head.list); |
76 | tomoyo_put_name(ptr->manager); | 76 | tomoyo_put_name(ptr->manager); |
77 | } | 77 | } |
@@ -168,7 +168,7 @@ static bool tomoyo_del_domain(struct list_head *element) | |||
168 | 168 | ||
169 | static void tomoyo_del_name(struct list_head *element) | 169 | static void tomoyo_del_name(struct list_head *element) |
170 | { | 170 | { |
171 | const struct tomoyo_name_entry *ptr = | 171 | const struct tomoyo_name *ptr = |
172 | container_of(element, typeof(*ptr), list); | 172 | container_of(element, typeof(*ptr), list); |
173 | } | 173 | } |
174 | 174 | ||
@@ -242,7 +242,7 @@ static void tomoyo_collect_entry(void) | |||
242 | } | 242 | } |
243 | } | 243 | } |
244 | for (i = 0; i < TOMOYO_MAX_HASH; i++) { | 244 | for (i = 0; i < TOMOYO_MAX_HASH; i++) { |
245 | struct tomoyo_name_entry *ptr; | 245 | struct tomoyo_name *ptr; |
246 | list_for_each_entry_rcu(ptr, &tomoyo_name_list[i], list) { | 246 | list_for_each_entry_rcu(ptr, &tomoyo_name_list[i], list) { |
247 | if (atomic_read(&ptr->users)) | 247 | if (atomic_read(&ptr->users)) |
248 | continue; | 248 | continue; |
@@ -278,8 +278,8 @@ static void tomoyo_collect_entry(void) | |||
278 | 278 | ||
279 | static void tomoyo_kfree_entry(void) | 279 | static void tomoyo_kfree_entry(void) |
280 | { | 280 | { |
281 | struct tomoyo_gc_entry *p; | 281 | struct tomoyo_gc *p; |
282 | struct tomoyo_gc_entry *tmp; | 282 | struct tomoyo_gc *tmp; |
283 | 283 | ||
284 | list_for_each_entry_safe(p, tmp, &tomoyo_gc_queue, list) { | 284 | list_for_each_entry_safe(p, tmp, &tomoyo_gc_queue, list) { |
285 | struct list_head *element = p->element; | 285 | struct list_head *element = p->element; |