From 9cca53b5195a490a70a84f927dc0b9356e10fdd7 Mon Sep 17 00:00:00 2001 From: Ben Hillis Date: Mon, 12 May 2025 08:27:01 -0700 Subject: [PATCH] Change XDG_RUNTIME_DIR mode from 0777 to 0700 --- WSLGd/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WSLGd/main.cpp b/WSLGd/main.cpp index 943ecd56..a7dc2037 100644 --- a/WSLGd/main.cpp +++ b/WSLGd/main.cpp @@ -294,7 +294,7 @@ try { std::filesystem::create_directories(c_xdgRuntimeDir); THROW_LAST_ERROR_IF(chown(c_xdgRuntimeDir, passwordEntry->pw_uid, passwordEntry->pw_gid) < 0); - THROW_LAST_ERROR_IF(chmod(c_xdgRuntimeDir, 0777) < 0); + THROW_LAST_ERROR_IF(chmod(c_xdgRuntimeDir, 0700) < 0); // Attempt to mount the virtiofs share for shared memory. bool isSharedMemoryMounted = false;