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 501f78fdbae91c889c1c472265ab930c3e36b9bd)
This commit is contained in:
parent
780b69ebfc
commit
6924679fff
2 changed files with 2 additions and 2 deletions
|
|
@ -204,7 +204,7 @@
|
||||||
"description": "util: check for setgid() as well in __normal_user()",
|
"description": "util: check for setgid() as well in __normal_user()",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 0,
|
"nomination_type": 0,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": null,
|
"because_sha": null,
|
||||||
"notes": null
|
"notes": null
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue