From 5db3b7e4a904820eb5e8bea6aa001421c8098505 Mon Sep 17 00:00:00 2001 From: "jeremy@chromium.org" Date: Wed, 14 Jul 2010 16:11:42 +0000 Subject: Mac: Use canonicalization rather than absolute paths for sandbox. BUG=None TEST=Installing themes should continue to work. Review URL: http://codereview.chromium.org/2834044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52326 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/sandbox_mac.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/common/sandbox_mac.h') diff --git a/chrome/common/sandbox_mac.h b/chrome/common/sandbox_mac.h index 8065298..249eaa3 100644 --- a/chrome/common/sandbox_mac.h +++ b/chrome/common/sandbox_mac.h @@ -50,6 +50,11 @@ void SandboxWarmup(); bool EnableSandbox(SandboxProcessType sandbox_type, const FilePath& allowed_dir); +// Convert provided path into a "canonical" path matching what the Sandbox +// expects i.e. one without symlinks. +// This path is not necessarily unique e.g. in the face of hardlinks. +void GetCanonicalSandboxPath(FilePath* path); + } // namespace sandbox #endif // CHROME_COMMON_SANDBOX_MAC_H_ -- cgit v1.1