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>
Tue, 1 Oct 2024 18:13:03 +0000 (20:13 +0200)
commit60071f334c8711d319e22f3a0d1b84c90dffe68e
tree349561a61b766f44cfa6edc351d8ac13ce73e9b8
parent718796d2af75b972799ac3ed2c36a0441fecce73
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