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

Support recursive mount attrs ("rro", "rnosuid", "rnodev", ...) #3272

Merged
merged 3 commits into from
Dec 8, 2021

Commits on Dec 7, 2021

  1. Configuration menu
    Copy the full SHA
    f8c48e4 View commit details
    Browse the repository at this point in the history
  2. Support nosymfollow mount option (kernel 5.10)

    See MS_NOSYMFOLLOW in mount(2)
    
    https://man7.org/linux/man-pages/man2/mount.2.html
    
    Signed-off-by: Akihiro Suda <[email protected]>
    AkihiroSuda committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    ba935a5 View commit details
    Browse the repository at this point in the history
  3. Support recursive mount attrs ("rro", "rnosuid", "rnodev", ...)

    The new mount option "rro" makes the mount point recursively read-only,
    by calling `mount_setattr(2)` with `MOUNT_ATTR_RDONLY` and `AT_RECURSIVE`.
    https://man7.org/linux/man-pages/man2/mount_setattr.2.html
    
    Requires kernel >= 5.12.
    
    The "rro" option string conforms to the proposal in util-linux/util-linux Issue 1501.
    
    Fix issue 2823
    
    Similary, this commit also adds the following mount options:
    - rrw
    - r[no]{suid,dev,exec,relatime,atime,strictatime,diratime,symfollow}
    
    Signed-off-by: Akihiro Suda <[email protected]>
    AkihiroSuda committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    382eba4 View commit details
    Browse the repository at this point in the history