summaryrefslogtreecommitdiffhomepage
path: root/windows/nsis-plugins/src/cleanup/cleaningops.cpp
diff options
context:
space:
mode:
authorunknown <jonathan@mullvad.net>2023-10-23 03:34:36 -0700
committerJonathan <jonathan@mullvad.net>2023-11-13 09:21:40 +0100
commit59126cfb4dcf278565fadf84f36ff39e89d5f9ae (patch)
treef3057e49115586ca6add1369af5c714804880cc0 /windows/nsis-plugins/src/cleanup/cleaningops.cpp
parent73c89488d8ff7bff2a33c973cbcc62f7f14b403e (diff)
downloadmullvadvpn-59126cfb4dcf278565fadf84f36ff39e89d5f9ae.tar.xz
mullvadvpn-59126cfb4dcf278565fadf84f36ff39e89d5f9ae.zip
Stronger permissions for mullvad directories
Set read-only permissions for authenticated users and full-access for admins for relevant mullvad directories on creation.
Diffstat (limited to 'windows/nsis-plugins/src/cleanup/cleaningops.cpp')
-rw-r--r--windows/nsis-plugins/src/cleanup/cleaningops.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/windows/nsis-plugins/src/cleanup/cleaningops.cpp b/windows/nsis-plugins/src/cleanup/cleaningops.cpp
index d95f275bca..917b9356cf 100644
--- a/windows/nsis-plugins/src/cleanup/cleaningops.cpp
+++ b/windows/nsis-plugins/src/cleanup/cleaningops.cpp
@@ -123,6 +123,7 @@ void MigrateCacheServiceUser()
common::fs::Mkdir(newCacheDir);
const auto localAppData = GetSystemUserLocalAppData();
+
const auto oldCacheDir = std::filesystem::path(localAppData).append(L"Mullvad VPN");
common::fs::ScopedNativeFileSystem nativeFileSystem;