]> 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)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 19 Jun 2024 20:50:22 +0000 (13:50 -0700)
commit54b27921026df384f67df86f04c39539df375c60
treea8c29b01ed11fa50bac33ae428acd8b1dfac47de
parent3b279f73fa37bec8d3ba04a15f5153d6491cffaf
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>
linux-user/syscall.c