Skip to content

Support recursively read-only (RRO) bind mounts (kernel >= 5.12) #44978

@AkihiroSuda

Description

@AkihiroSuda

Description

e.g., docker run -v /mnt:/mnt:rro,rprivate to make its submounts such as /mnt/usbstorage to be read-only.
The existing ro mounts should remain non-recursive, for compatibility sake.

The "rro" mount type has been supported by runc >= 1.1, on kernel >= 5.12.

The "rro" mount type has to be used in conjunction with rprivate propagation, in order to avoid accidentally having writable submounts.

So, we should also have:

Related:

Fixes:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions