Allow FMQ reader to create queue as read-only

If mmap fails with EACCES when creating a queue from an MQDescriptor,
try again without PROT_WRITE. This allows readers to get read-only
queues with the `kUnsynchronizedWrite` flavor and allows the other
process to seal off future writes before sending the MQDescriptor to the
reader processes.

Test: atest fmq_test
Bug: 293614344

Change-Id: I7969096a2a7e17aaf821cc93272a1c78d1876c75
3 files changed
tree: d06ee03ad31af4fe9de8e0b841d35c4f06abe13d
  1. base/
  2. benchmarks/
  3. fuzzer/
  4. include/
  5. tests/
  6. Android.bp
  7. EventFlag.cpp
  8. FmqInternal.cpp
  9. OWNERS
  10. PREUPLOAD.cfg
  11. TEST_MAPPING