Commit Graph

2 Commits

Author SHA1 Message Date
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
Cong Liu 60210331fb New upstream version 7.1.0 2022-11-03 14:19:34 +08:00