aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/domain.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-02-16 07:14:48 -0500
committerJames Morris <jmorris@namei.org>2010-02-16 19:37:58 -0500
commit170800088666963de1111d62fb503889c8c82eda (patch)
tree1c8f1671fd48a7688ec8253508dd2cd460e0aff1 /security/tomoyo/domain.c
parent2da5d31bc72d0a36dc16af7f5d5baa4f86df9c76 (diff)
TOMOYO: Remove __func__ from tomoyo_is_correct_path/domain
__func__ is used for only debug printk(). We can remove it. 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/domain.c')
-rw-r--r--security/tomoyo/domain.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c
index 74cd0f52e3a8..66caaa1b842a 100644
--- a/security/tomoyo/domain.c
+++ b/security/tomoyo/domain.c
@@ -136,13 +136,13 @@ static int tomoyo_update_domain_initializer_entry(const char *domainname,
136 int error = is_delete ? -ENOENT : -ENOMEM; 136 int error = is_delete ? -ENOENT : -ENOMEM;
137 bool is_last_name = false; 137 bool is_last_name = false;
138 138
139 if (!tomoyo_is_correct_path(program, 1, -1, -1, __func__)) 139 if (!tomoyo_is_correct_path(program, 1, -1, -1))
140 return -EINVAL; /* No patterns allowed. */ 140 return -EINVAL; /* No patterns allowed. */
141 if (domainname) { 141 if (domainname) {
142 if (!tomoyo_is_domain_def(domainname) && 142 if (!tomoyo_is_domain_def(domainname) &&
143 tomoyo_is_correct_path(domainname, 1, -1, -1, __func__)) 143 tomoyo_is_correct_path(domainname, 1, -1, -1))
144 is_last_name = true; 144 is_last_name = true;
145 else if (!tomoyo_is_correct_domain(domainname, __func__)) 145 else if (!tomoyo_is_correct_domain(domainname))
146 return -EINVAL; 146 return -EINVAL;
147 saved_domainname = tomoyo_get_name(domainname); 147 saved_domainname = tomoyo_get_name(domainname);
148 if (!saved_domainname) 148 if (!saved_domainname)
@@ -357,12 +357,12 @@ static int tomoyo_update_domain_keeper_entry(const char *domainname,
357 bool is_last_name = false; 357 bool is_last_name = false;
358 358
359 if (!tomoyo_is_domain_def(domainname) && 359 if (!tomoyo_is_domain_def(domainname) &&
360 tomoyo_is_correct_path(domainname, 1, -1, -1, __func__)) 360 tomoyo_is_correct_path(domainname, 1, -1, -1))
361 is_last_name = true; 361 is_last_name = true;
362 else if (!tomoyo_is_correct_domain(domainname, __func__)) 362 else if (!tomoyo_is_correct_domain(domainname))
363 return -EINVAL; 363 return -EINVAL;
364 if (program) { 364 if (program) {
365 if (!tomoyo_is_correct_path(program, 1, -1, -1, __func__)) 365 if (!tomoyo_is_correct_path(program, 1, -1, -1))
366 return -EINVAL; 366 return -EINVAL;
367 saved_program = tomoyo_get_name(program); 367 saved_program = tomoyo_get_name(program);
368 if (!saved_program) 368 if (!saved_program)
@@ -556,8 +556,8 @@ static int tomoyo_update_alias_entry(const char *original_name,
556 const struct tomoyo_path_info *saved_aliased_name; 556 const struct tomoyo_path_info *saved_aliased_name;
557 int error = is_delete ? -ENOENT : -ENOMEM; 557 int error = is_delete ? -ENOENT : -ENOMEM;
558 558
559 if (!tomoyo_is_correct_path(original_name, 1, -1, -1, __func__) || 559 if (!tomoyo_is_correct_path(original_name, 1, -1, -1) ||
560 !tomoyo_is_correct_path(aliased_name, 1, -1, -1, __func__)) 560 !tomoyo_is_correct_path(aliased_name, 1, -1, -1))
561 return -EINVAL; /* No patterns allowed. */ 561 return -EINVAL; /* No patterns allowed. */
562 saved_original_name = tomoyo_get_name(original_name); 562 saved_original_name = tomoyo_get_name(original_name);
563 saved_aliased_name = tomoyo_get_name(aliased_name); 563 saved_aliased_name = tomoyo_get_name(aliased_name);
@@ -659,7 +659,7 @@ struct tomoyo_domain_info *tomoyo_find_or_assign_new_domain(const char *
659 const struct tomoyo_path_info *saved_domainname; 659 const struct tomoyo_path_info *saved_domainname;
660 bool found = false; 660 bool found = false;
661 661
662 if (!tomoyo_is_correct_domain(domainname, __func__)) 662 if (!tomoyo_is_correct_domain(domainname))
663 return NULL; 663 return NULL;
664 saved_domainname = tomoyo_get_name(domainname); 664 saved_domainname = tomoyo_get_name(domainname);
665 if (!saved_domainname) 665 if (!saved_domainname)