util: check for setgid() as well in __normal_user()
Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27378>
This commit is contained in:

committed by
Marge Bot

parent
afd4e633ee
commit
501f78fdba
@@ -399,7 +399,7 @@ __normal_user(void)
|
|||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
return geteuid() == getuid();
|
return geteuid() == getuid() && getegid() == getgid();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user