|
| From: | Philippe Mathieu-Daudé |
| Subject: | Re: [PATCH] linux-user: Make TARGET_NR_setgroups affect only the current thread |
| Date: | Wed, 31 Jan 2024 14:10:55 +0100 |
| User-agent: | Mozilla Thunderbird |
On 31/1/24 01:18, Ilya Leoshkevich wrote:
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>
---
linux-user/syscall.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
| [Prev in Thread] | Current Thread | [Next in Thread] |