Skip to content

Allow write access to binfmt_misc when using Linux kernel >= 6.7 #4520

@psoftware

Description

@psoftware

Hi,
I am not sure if I found the right place where my issue lies.
Right now it seems that it is not possible to use binfmt_misc in unprivileged lxc containers, except for (read-only) mounting. I am able to mount binfmt in a lxc container, but if i write into /proc/sys/fs/binfmt_misc/register I get a permission denied error.

Since Kernel v6.7 binfmt supports namespaces, so it should be safe to use this in containers without affecting the entire machine. Is it possible to enable permissions to use binfmt for newer kernels only?

I'm actually testing this on a Proxmox machine with lxc 6.0.0 installed.

Thank you very much (:

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyGood for new contributorsFeatureNew feature, not a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions