From 2dd30c4faee8fe0bbb13a76c1ad50b47f5d6ae6a Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 20 Nov 2024 21:01:44 +0100 Subject: [PATCH] Remove write permission on openvr manifest --- server/active_runtime.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/active_runtime.cpp b/server/active_runtime.cpp index 36e7de8c..770b755c 100644 --- a/server/active_runtime.cpp +++ b/server/active_runtime.cpp @@ -104,6 +104,7 @@ active_runtime::active_runtime() : std::ofstream manifest_file(openvr_manifest.c_str()); manifest_file.exceptions(std::ofstream::failbit); manifest_file << manifest; + std::filesystem::permissions(openvr_manifest, std::filesystem::perms(0400), std::filesystem::perm_options::replace); this->openvr_manifest = openvr_manifest; } }