aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/blaze_util_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/cpp/blaze_util_platform.h')
-rw-r--r--src/main/cpp/blaze_util_platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/cpp/blaze_util_platform.h b/src/main/cpp/blaze_util_platform.h
index 40b000bcc9..6a818e5e0c 100644
--- a/src/main/cpp/blaze_util_platform.h
+++ b/src/main/cpp/blaze_util_platform.h
@@ -141,6 +141,11 @@ void ExcludePathFromBackup(const std::string& path);
std::string GetHashedBaseDir(const std::string& root,
const std::string& hashable);
+// Create a safe installation directory where we keep state, installations etc.
+// This method ensures that the directory is created, is owned by the current
+// user, and not accessible to anyone else.
+void CreateSecureOutputRoot(const std::string& path);
+
} // namespace blaze
#endif // BAZEL_SRC_MAIN_CPP_BLAZE_UTIL_PLATFORM_H_