commit | ee7f5c6365b8fce61073e030f2e9a3e86ff4e556 | [log] [tgz] |
---|---|---|
author | Keith Mok <keithmok@google.com> | Thu Aug 31 00:31:35 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Dec 11 21:39:29 2023 +0000 |
tree | c8c1226c768f1f3fca5d28dcfcece547f446a587 | |
parent | 49b85e93561d1ab5e6bab68e36d8454e1ef1fa89 [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 (cherry picked from commit f83c5c8fecf89d9315945368aa20350c2f235cc0) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:61a2897733e15a12b7aa2dfd99957e83cbe59351) Merged-In: I9288cf30b41e84ad8d3247c204e20482912bff69 Change-Id: I9288cf30b41e84ad8d3247c204e20482912bff69