aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/file.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/file.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/file.c')
-rw-r--r--security/tomoyo/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/security/tomoyo/file.c b/security/tomoyo/file.c
index db342ef87af7..1b24304edb7d 100644
--- a/security/tomoyo/file.c
+++ b/security/tomoyo/file.c
@@ -168,7 +168,7 @@ static int tomoyo_update_globally_readable_entry(const char *filename,
168 const struct tomoyo_path_info *saved_filename; 168 const struct tomoyo_path_info *saved_filename;
169 int error = is_delete ? -ENOENT : -ENOMEM; 169 int error = is_delete ? -ENOENT : -ENOMEM;
170 170
171 if (!tomoyo_is_correct_path(filename, 1, 0, -1, __func__)) 171 if (!tomoyo_is_correct_path(filename, 1, 0, -1))
172 return -EINVAL; 172 return -EINVAL;
173 saved_filename = tomoyo_get_name(filename); 173 saved_filename = tomoyo_get_name(filename);
174 if (!saved_filename) 174 if (!saved_filename)
@@ -468,7 +468,7 @@ static int tomoyo_update_no_rewrite_entry(const char *pattern,
468 const struct tomoyo_path_info *saved_pattern; 468 const struct tomoyo_path_info *saved_pattern;
469 int error = is_delete ? -ENOENT : -ENOMEM; 469 int error = is_delete ? -ENOENT : -ENOMEM;
470 470
471 if (!tomoyo_is_correct_path(pattern, 0, 0, 0, __func__)) 471 if (!tomoyo_is_correct_path(pattern, 0, 0, 0))
472 return -EINVAL; 472 return -EINVAL;
473 saved_pattern = tomoyo_get_name(pattern); 473 saved_pattern = tomoyo_get_name(pattern);
474 if (!saved_pattern) 474 if (!saved_pattern)
@@ -814,7 +814,7 @@ static int tomoyo_update_path_acl(const u8 type, const char *filename,
814 814
815 if (!domain) 815 if (!domain)
816 return -EINVAL; 816 return -EINVAL;
817 if (!tomoyo_is_correct_path(filename, 0, 0, 0, __func__)) 817 if (!tomoyo_is_correct_path(filename, 0, 0, 0))
818 return -EINVAL; 818 return -EINVAL;
819 saved_filename = tomoyo_get_name(filename); 819 saved_filename = tomoyo_get_name(filename);
820 if (!saved_filename) 820 if (!saved_filename)
@@ -898,8 +898,8 @@ static int tomoyo_update_path2_acl(const u8 type, const char *filename1,
898 898
899 if (!domain) 899 if (!domain)
900 return -EINVAL; 900 return -EINVAL;
901 if (!tomoyo_is_correct_path(filename1, 0, 0, 0, __func__) || 901 if (!tomoyo_is_correct_path(filename1, 0, 0, 0) ||
902 !tomoyo_is_correct_path(filename2, 0, 0, 0, __func__)) 902 !tomoyo_is_correct_path(filename2, 0, 0, 0))
903 return -EINVAL; 903 return -EINVAL;
904 saved_filename1 = tomoyo_get_name(filename1); 904 saved_filename1 = tomoyo_get_name(filename1);
905 saved_filename2 = tomoyo_get_name(filename2); 905 saved_filename2 = tomoyo_get_name(filename2);