From 54b9d5d5e81118acf4edb6cc626569b72ce03aaf Mon Sep 17 00:00:00 2001 From: "R. Scott Bailey" Date: Sat, 3 May 2025 10:21:16 -0400 Subject: [PATCH] Fix permissions on runtime-dir As the weston error message explicitly says: "Unix access mode must be 0700 (current mode is 777) Change permissions accordingly. --- 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;