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>
Wed, 14 Aug 2024 10:29:34 +0000 (12:29 +0200)
commit878c53402bc8eb11deccecd1387e869b410db52c
tree9bca59f446f836808db61f806cc4caeef87444a3
parentbd2444bf4db9b30cf09b0fac29f90fcd2e89a6dc
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