1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:17:35 +00:00

Kernel: Get GID from credentials object in sys$setgroups()

I missed one instance of these. Thanks Anthony Iacono for spotting it!
This commit is contained in:
Andreas Kling 2022-08-20 22:41:49 +02:00
parent 9eeee24a39
commit 619ac65302

View file

@ -274,7 +274,7 @@ ErrorOr<FlatPtr> Process::sys$setgroups(size_t count, Userspace<GroupID const*>
HashTable<GroupID> unique_extra_gids;
for (auto& extra_gid : new_extra_gids) {
if (extra_gid != gid())
if (extra_gid != credentials->gid())
TRY(unique_extra_gids.try_set(extra_gid));
}