]> 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>
Mon, 18 Nov 2024 16:29:40 +0000 (19:29 +0300)
commit9699e9f06dc58043a97934db9b9e17f687d6a517
tree2b5bde7df5b3a8320087bae7ce2a4a825c9bec12
parent494d6b81fe7a268656b4e0de87259b895fdb97d2
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