]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_translocate/lib/SecTranslocateShared.hpp
Security-58286.41.2.tar.gz
[apple/security.git] / OSX / libsecurity_translocate / lib / SecTranslocateShared.hpp
index 0940b3a12662ae195d08c5f5557fb0db0a49f920..a55961c50392e0ea1177a8fdac4b8b00c1659f4f 100644 (file)
@@ -61,7 +61,8 @@ public:
     inline bool shouldTranslocate() const { return should; };
     inline const string & getOriginalRealPath() const { return realOriginalPath; };
     inline const string & getPathToTranslocate() const { return pathToTranslocate; };
-    inline const string & getPathInsideTranslocation() const { return pathInsideTranslocationPoint; } ;
+    inline const string & getPathInsideTranslocation() const { return pathInsideTranslocationPoint; };
+    inline const string & getComponentNameToTranslocate() const { return componentNameToTranslocate; };
     string getTranslocatedPathToOriginalPath(const string &translocationPoint) const;
 private:
     TranslocationPath() = delete;
@@ -69,6 +70,7 @@ private:
     bool should;
     string realOriginalPath;
     string pathToTranslocate;
+    string componentNameToTranslocate; //the final component of pathToTranslocate
     string pathInsideTranslocationPoint;
 
     ExtendedAutoFileDesc findOuterMostCodeBundleForFD(ExtendedAutoFileDesc &fd);