summaryrefslogtreecommitdiffstats
path: root/thirdparty/openxr/src/common/platform_utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/openxr/src/common/platform_utils.hpp')
-rw-r--r--thirdparty/openxr/src/common/platform_utils.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/thirdparty/openxr/src/common/platform_utils.hpp b/thirdparty/openxr/src/common/platform_utils.hpp
index c4d75bf259..35369a1477 100644
--- a/thirdparty/openxr/src/common/platform_utils.hpp
+++ b/thirdparty/openxr/src/common/platform_utils.hpp
@@ -323,6 +323,8 @@ static inline std::string PlatformUtilsGetSecureEnv(const char* name) {
const std::string envValue = PlatformUtilsGetEnv(name);
// Do not allow high integrity processes to act on data that can be controlled by medium integrity processes.
+ // Specifically, medium integrity processes can set environment variables which could then
+ // be read by high integrity processes.
if (IsHighIntegrityLevel()) {
if (!envValue.empty()) {
LogPlatformUtilsError(std::string("!!! WARNING !!! Environment variable ") + name +