[roll] Roll fuchsia [vfs] Enforce WRITE_BYTES right check in handle_allocate

Verify that connection options contain WRITE_BYTES right
before forwarding Allocate FIDL requests to the underlying
file implementation. Returning Status::BAD_HANDLE when
WRITE_BYTES is missing prevents read-only clients from
modifying file allocations or stream sizes.

Original-Original-Bug: 517453395
Test: Added unit tests test_allocate and test_allocate_no_perms
      in file/connection.rs. Tested with vfs-tests on emulator.

TAG: agy
Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1727709
Original-Original-Revision: 7b716246aea80592e5a429f32fd68064511043ea
GitOrigin-RevId: ef2b21be39f721c5bbd6c527928b60ffc1b1778c
Change-Id: I1dff1c687414499cec1cdb5e245047d0867b4f6a
1 file changed
tree: 078d936b2d995ec5ae5fb70cb59bdf3a181afb97
  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.