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

committed by
Eric Engestrom

parent
3c8490a877
commit
ca8b1613b8
@@ -204,7 +204,7 @@
|
||||
"description": "util: check for setgid() as well in __normal_user()",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
@@ -399,7 +399,7 @@ __normal_user(void)
|
||||
#if defined(_WIN32)
|
||||
return true;
|
||||
#else
|
||||
return geteuid() == getuid();
|
||||
return geteuid() == getuid() && getegid() == getgid();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user