aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/gc.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-06-20 20:58:53 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:34:42 -0400
commit0617c7ff34dc9b1d641640c3953274bb2dbe21a6 (patch)
tree6be51af32ad65380aff9b7fa385f65ef15b3d53b /security/tomoyo/gc.c
parent7c2ea22e3c5463627ca98924cd65cb9e480dc29c (diff)
TOMOYO: Remove alias keyword.
Some programs behave differently depending on argv[0] passed to execve(). TOMOYO has "alias" keyword in order to allow administrators to define different domains if requested pathname passed to execve() is a symlink. But "alias" keyword is incomplete because this keyword assumes that requested pathname and argv[0] are identical. Thus, remove "alias" keyword (by this patch) and add syntax for checking argv[0] (by future patches). 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.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/security/tomoyo/gc.c b/security/tomoyo/gc.c
index cf62a4ee79c2..4d4ba84f8749 100644
--- a/security/tomoyo/gc.c
+++ b/security/tomoyo/gc.c
@@ -77,14 +77,6 @@ static void tomoyo_del_aggregator(struct list_head *element)
77 tomoyo_put_name(ptr->aggregated_name); 77 tomoyo_put_name(ptr->aggregated_name);
78} 78}
79 79
80static void tomoyo_del_alias(struct list_head *element)
81{
82 struct tomoyo_alias_entry *ptr =
83 container_of(element, typeof(*ptr), head.list);
84 tomoyo_put_name(ptr->original_name);
85 tomoyo_put_name(ptr->aliased_name);
86}
87
88static void tomoyo_del_manager(struct list_head *element) 80static void tomoyo_del_manager(struct list_head *element)
89{ 81{
90 struct tomoyo_policy_manager_entry *ptr = 82 struct tomoyo_policy_manager_entry *ptr =
@@ -309,9 +301,6 @@ static void tomoyo_kfree_entry(void)
309 case TOMOYO_ID_AGGREGATOR: 301 case TOMOYO_ID_AGGREGATOR:
310 tomoyo_del_aggregator(element); 302 tomoyo_del_aggregator(element);
311 break; 303 break;
312 case TOMOYO_ID_ALIAS:
313 tomoyo_del_alias(element);
314 break;
315 case TOMOYO_ID_GLOBALLY_READABLE: 304 case TOMOYO_ID_GLOBALLY_READABLE:
316 tomoyo_del_allow_read(element); 305 tomoyo_del_allow_read(element);
317 break; 306 break;