]> 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:26 +0000 (15:22 +0300)
commit1649e9559b964c3b1267541e6e2eccb7cc083781
tree6b17fac5761be6d73c0bd452e21f15e647adcbb9
parent40682cfcea64f7eac2a29aae4f5b77ddde804872
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