diff options
Diffstat (limited to 'security/tomoyo/realpath.c')
-rw-r--r-- | security/tomoyo/realpath.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c index 153fa23a05cc..ed8ccd680102 100644 --- a/security/tomoyo/realpath.c +++ b/security/tomoyo/realpath.c | |||
@@ -162,25 +162,6 @@ char *tomoyo_realpath_from_path(struct path *path) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | /** | 164 | /** |
165 | * tomoyo_realpath - Get realpath of a pathname. | ||
166 | * | ||
167 | * @pathname: The pathname to solve. | ||
168 | * | ||
169 | * Returns the realpath of @pathname on success, NULL otherwise. | ||
170 | */ | ||
171 | char *tomoyo_realpath(const char *pathname) | ||
172 | { | ||
173 | struct path path; | ||
174 | |||
175 | if (pathname && kern_path(pathname, LOOKUP_FOLLOW, &path) == 0) { | ||
176 | char *buf = tomoyo_realpath_from_path(&path); | ||
177 | path_put(&path); | ||
178 | return buf; | ||
179 | } | ||
180 | return NULL; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * tomoyo_realpath_nofollow - Get realpath of a pathname. | 165 | * tomoyo_realpath_nofollow - Get realpath of a pathname. |
185 | * | 166 | * |
186 | * @pathname: The pathname to solve. | 167 | * @pathname: The pathname to solve. |