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>
Sat, 6 Jul 2024 13:57:30 +0000 (15:57 +0200)
commitd61526f6f8069919de0304138aa2efec4f66887e
treebefcef0488bc651859272fbc5b90d2f30579b1d5
parentf21043548f8af61469929c00bff87d6e563a6102
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