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