qemu/linux-user
Michael Tokarev 59164a8de4 [PATCH, HACK]: linux-user: handle binfmt-misc P flag as a separate exe name
Updated: Wed, 31 Aug 2022 12:30:17 +0300

A hackish way to distinguish the case when qemu-user binary is executed
using in-kernel binfmt-misc subsystem with P flag (preserve argv).
We register binfmt interpreter under name /usr/libexec/qemu-binfmt/qemu-foo-binfmt-P
(which is just a symlink to ../../bin/qemu-foo), and if run like that,
qemu-user binary will "know" it should interpret argv[1] & argv[2]
in a special way.

Gbp-Pq: Name linux-user-binfmt-P.diff
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
2022-11-09 22:24:21 +08:00
..
aarch64 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
alpha New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
arm New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
cris New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
generic New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
hexagon New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
hppa New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
i386 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
include New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
loongarch64 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
m68k New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
microblaze New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mips New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mips64 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
nios2 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
openrisc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
ppc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
riscv New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
s390x New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
sh4 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
sparc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
x86_64 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
xtensa New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
cpu_loop-common.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
elfload.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
errnos.c.inc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
exit.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
fd-trans.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
fd-trans.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
flat.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
flatload.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
ioctls.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
linux_loop.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
linuxload.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
loader.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
main.c [PATCH, HACK]: linux-user: handle binfmt-misc P flag as a separate exe name 2022-11-09 22:24:21 +08:00
meson.build New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mmap.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
qemu.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
semihost.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
signal-common.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
signal.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
socket.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
strace.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
strace.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
strace.list New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
syscall.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
syscall_defs.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
syscall_types.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
target_flat.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
thunk.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
trace-events New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
trace.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
uaccess.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
uname.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
uname.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
user-internals.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
user-mmap.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vm86.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00