]> 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)
commitd52746b10102bf0217d72f92d4d579a588fc7227
tree2d8fe725a2353f8c35d60ded551202ed7576c05b
parentafc87f12b5e85b08dcbabe60fffdbba5b8e9545e
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