]> git.ipfire.org Git - thirdparty/qemu.git/commit
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)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 17 Nov 2024 03:28:27 +0000 (06:28 +0300)
commit3dc3a04fb1e542623c0de28813ac4994e477f139
tree937467f8503af070752150688e0bc3127f8ed525
parent363d385dbff091e2dac0211b7dfce048cb52fada
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>
(cherry picked from commit 8491026a08b417b2d4070f7c373dcb43134c5312)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/syscall.c