Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unshare: manage binfmt_misc mounts #3094

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

karelzak
Copy link
Collaborator

@karelzak karelzak added the PR-FROM-MAILING-LIST This pull request is based on a patch from the mailing list. label Jun 19, 2024
@karelzak karelzak self-assigned this Jun 19, 2024
add --mount-binfmt[=<dir>] to mount binfmt_misc filesystem,
this results in clearing inherited interpreters from the previous namespace

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
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>
@karelzak karelzak merged commit 2d965d5 into util-linux:master Jun 20, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-FROM-MAILING-LIST This pull request is based on a patch from the mailing list.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants