]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: Make TARGET_NR_setgroups affect only the current thread
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 14 Jun 2024 15:46:40 +0000 (17:46 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 20 Jun 2024 12:22:30 +0000 (15:22 +0300)
commitb07ff6d447385b0e5339cc19ce7724b9e39cf08a
tree733f3ee1c45b4bff80f8673fbda6e15229aa4309
parentc53db9c66de6912c59f91d45c81f9cbcda988a4c
linux-user: Make TARGET_NR_setgroups affect only the current thread

Like TARGET_NR_setuid, TARGET_NR_setgroups should affect only the
calling thread, and not the entire process. Therefore, implement it
using a syscall, and not a libc call.

Cc: qemu-stable@nongnu.org
Fixes: 19b84f3c35d7 ("added setgroups and getgroups syscalls")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240614154710.1078766-1-iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 54b27921026df384f67df86f04c39539df375c60)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/syscall.c