ANDROID: ashmem_rust: add toggle for PROT_READ
The memfd type simulates SET_PROT_MASK using file seals, but there's no
file seal to prevent mapping readable memory. Thus, add a toggle that
removes the ability to unset the PROT_READ bit on an ashmem file.
Bug: 370906207
Change-Id: I2d0347ce124d7d6d543cff765f77b28202cf327f
Signed-off-by:
Alice Ryhl <aliceryhl@google.com>
Loading
Please sign in to comment