Commit 500321f2 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

xwayland: Relax requirements for /tmp/.X11-unix/ ownership

Hopefully, this will fix some tests in CI. It should be fine if
/tmp/.X11-unix/ is owned by the same user as getuid().
parent 4269f13e
......@@ -147,8 +147,8 @@ static bool checkSocketsDirectory()
qCWarning(KWIN_XWL) << path << "is not a directory. Broken system?";
return false;
}
if (info.st_uid != 0) {
qCWarning(KWIN_XWL) << path << "is not owned by root. Your system might be compromised!";
if (info.st_uid != 0 && info.st_uid != getuid()) {
qCWarning(KWIN_XWL) << path << "is not owned by root or us";
return false;
}
if (!(info.st_mode & S_ISVTX)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment