unshare: load binfmt_misc interpreter
authorLaurent Vivier <laurent@vivier.eu>
Wed, 19 Jun 2024 08:19:51 +0000 (10:19 +0200)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 3 Sep 2024 14:00:47 +0000 (14:00 +0000)
commit3bf6922bce321b951f95343a56708800ee93a8b9
tree64ac2ac7e21c837cd0b84222f253c74453720f4e
parent193053491043b630698faf7b5a3dc1a6dd4f2ed4
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