commit | f83c5c8fecf89d9315945368aa20350c2f235cc0 | [log] [tgz] |
---|---|---|
author | Keith Mok <keithmok@google.com> | Thu Aug 31 00:31:35 2023 +0000 |
committer | Keith Mok <keithmok@google.com> | Tue Sep 05 22:06:21 2023 +0000 |
tree | 7e97fdc8fe33e490338fa96a0b88b8c5bb4c53d6 | |
parent | 711d96e4fbfccdbe7d96fbccacdb25729bda2d79 [diff] |
Add seal if ashmem-dev is backed by memfd Need to seal the buffer size in align with ashmem if set to PROT_READ only to prevent untrusted remote process to shrink the buffer size and crash it. Bug: 294609150 Test: build Ignore-AOSP-First: Security Change-Id: I9288cf30b41e84ad8d3247c204e20482912bff69