linux-user: Fix setreuid and setregid to use direct syscalls
authorHelge Deller <deller@kernel.org>
Tue, 5 Nov 2024 15:15:24 +0000 (16:15 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 16 Nov 2024 16:40:19 +0000 (08:40 -0800)
commit8491026a08b417b2d4070f7c373dcb43134c5312
treee66276d372f2268ba2856c66a9d436d469e3e313
parent43f2def68476697deb0d119cbae51b20019c6c86
linux-user: Fix setreuid and setregid to use direct syscalls

The commit fd6f7798ac30 ("linux-user: Use direct syscalls for setuid(),
etc") added direct syscall wrappers for setuid(), setgid(), etc since the
system calls have different semantics than the libc functions.

Add and use the corresponding wrappers for setreuid and setregid which
were missed in that commit.

This fixes the build of the debian package of the uid_wrapper library
(https://cwrap.org/uid_wrapper.html) when running linux-user.

Cc: qemu-stable@nongnu.org
Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <Zyo2jMKqq8hG8Pkz@p100>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/syscall.c