[roll] Roll fuchsia Reland "[starnix] Report MS_RDONLY in /proc/mounts for remote_bundle"

This is a reland of commit 90fe5380b800e37e2875916229f6fa4cb8ee6556 with
the root remote_bundle remounting test fixed to restore the flags to the
state expected by ProcMountsTest.Basic.

Filesystems like remote_bundle can never be mounted read/write, but our
handling of MS_RDONLY is currently only based on the flags of the mount,
not the filesystem.

MS_RDONLY (and other filesystem mount flags) should be included in the
flags reported by statfs(), but doing so is complicated by the use of
LayeredFs.

This change adds regression tests for reporting of the "ro" option in
"/proc/mounts" for root-mounted "remote_bundle" when remounted to remove
the MS_RDONLY flag, and implements a workaround to include MS_RDONLY in
the filesystem flags reported specifically in /proc/mounts. (The details
in /proc/self/mountinfo are already reported correctly)

Multiply: mount_test.cm
Original-Bug: 481369533, 322875215, 485951589
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1556561
Original-Revision: fc08b24984b2e9240265bb7249f31cf4f4239482
GitOrigin-RevId: f2f99148ae730de232aae763a9ab4b3971310149
Change-Id: I700a02975d51cbeb2012e1a1bc60b0834934f6d2
1 file changed
tree: 6347f30ae4df8dd454e16ec4b7cbb38a672fcb81
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.