]> 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:22 +0000 (15:22 +0300)
commit0556f5fc1356374b652dda5cd9deb85dfb08bd33
tree512026d3d97aa7642d2ed6980ae512ad7422fde0
parent7ee955223ede77900d1f96a3ad2b4ed783163537
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