]> Pileus Git - ~andy/linux/blobdiff - security/tomoyo/realpath.c
TOMOYO: Use common code for policy reading.
[~andy/linux] / security / tomoyo / realpath.c
index 153fa23a05ccd90a9ff3b90c02cefbd9e0cb9126..ed8ccd680102b53d98f9b98cb9a3aa05c8143090 100644 (file)
@@ -161,25 +161,6 @@ char *tomoyo_realpath_from_path(struct path *path)
        return name;
 }
 
-/**
- * tomoyo_realpath - Get realpath of a pathname.
- *
- * @pathname: The pathname to solve.
- *
- * Returns the realpath of @pathname on success, NULL otherwise.
- */
-char *tomoyo_realpath(const char *pathname)
-{
-       struct path path;
-
-       if (pathname && kern_path(pathname, LOOKUP_FOLLOW, &path) == 0) {
-               char *buf = tomoyo_realpath_from_path(&path);
-               path_put(&path);
-               return buf;
-       }
-       return NULL;
-}
-
 /**
  * tomoyo_realpath_nofollow - Get realpath of a pathname.
  *