Skip to content

Change XDG_RUNTIME_DIR mode from 0777 to 0700 #1333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WSLGd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down