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().
This commit is contained in:
Vlad Zahorodnii 2021-05-12 12:43:35 +03:00
parent 4269f13e58
commit 500321f2b5

View file

@ -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)) {