unshare: load binfmt_misc interpreter
authorLaurent Vivier <laurent@vivier.eu>
Wed, 19 Jun 2024 08:19:51 +0000 (10:19 +0200)
committerChris Hofstaedtler <zeha@debian.org>
Mon, 9 Sep 2024 21:20:25 +0000 (23:20 +0200)
commite6ced5725603a9ae4aad2da17c07e4b52c9261b5
tree270cb24c8afedde01b73cba0dbc232abd96720cd
parent66a26022e88b712194f4c43376b099c2e4bf367a
unshare: load binfmt_misc interpreter

add -l, --load-interp <file> to load a binfmt_misc interpreter at startup.

The interpreter is loaded from the initial fileystem if the 'F' flags is
provided, otherwise from inside the new namespace
This makes possible to start a chroot of another architecture without
being root.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Gbp-Pq: Topic upstream-master
Gbp-Pq: Name unshare-load-binfmt_misc-interpreter.patch
sys-utils/unshare.1.adoc
sys-utils/unshare.c