Skip to content
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

Update mode of .X11-unix directory to 01777 (sticky bit set) #1137

Open
wants to merge 3 commits 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
6 changes: 1 addition & 5 deletions WSLGd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ constexpr auto c_versionFile = "/etc/versions.txt";
constexpr auto c_versionMount = SHARE_PATH "/versions.txt";
constexpr auto c_shareDocsDir = "/usr/share/doc";
constexpr auto c_shareDocsMount = SHARE_PATH "/doc";
constexpr auto c_x11RuntimeDir = SHARE_PATH "/.X11-unix";
constexpr auto c_xdgRuntimeDir = SHARE_PATH "/runtime-dir";
constexpr auto c_stdErrLogFile = SHARE_PATH "/stderr.log";

Expand Down Expand Up @@ -300,9 +299,6 @@ try {
THROW_LAST_ERROR_IF(chown(c_dbusDir, passwordEntry->pw_uid, passwordEntry->pw_gid) < 0);
THROW_LAST_ERROR_IF(chmod(c_dbusDir, 0777) < 0);

std::filesystem::create_directories(c_x11RuntimeDir);
THROW_LAST_ERROR_IF(chmod(c_x11RuntimeDir, 0777) < 0);
benhillis marked this conversation as resolved.
Show resolved Hide resolved

std::filesystem::create_directories(c_xdgRuntimeDir);
THROW_LAST_ERROR_IF(chmod(c_xdgRuntimeDir, 0700) < 0);
THROW_LAST_ERROR_IF(chown(c_xdgRuntimeDir, passwordEntry->pw_uid, passwordEntry->pw_gid) < 0);
Expand Down Expand Up @@ -435,7 +431,7 @@ try {
westonArgs += " ";
}
westonArgs += "/usr/bin/weston ";
westonArgs += "--backend=rdp-backend.so --modules=wslgd-notify.so --xwayland ";
westonArgs += "--backend=rdp-backend.so --modules=wslgd-notify.so ";
westonArgs += westonSocketOption;
westonArgs += " ";
westonArgs += westonShellOption;
Expand Down