mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-23 20:45:08 +03:00
unshare binfmt
Rework how we handle binfmt_misc so it will work inside a user namespace. * Use a custom mountpoint (only accessible inside the mount namespace), this is the crux of the change, allowing us to mount it as non-root and avoid messing with any host configs too! * No longer explicitly modprobe binfmt_misc, any modern system should probe it automatically when we try to mount it... I think so anyways heh Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
This commit is contained in:
parent
c997ce83c2
commit
be5e18cf99
8 changed files with 60 additions and 76 deletions
|
@ -34,7 +34,9 @@ fsops = [
|
|||
readonly=False,
|
||||
required=True,
|
||||
relative=False,
|
||||
)
|
||||
),
|
||||
# Mount binfmt_misc at /tmp/pmb_binfmt_misc
|
||||
sandbox.BinfmtOperation(pmb.config.binfmt_misc),
|
||||
]
|
||||
sandbox.setup_mounts(fsops)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue