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:
parent
4269f13e58
commit
500321f2b5
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue