This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: android: ashmem: Disallow ashmem memory from being remapped
When ashmem file is being mmapped the resulting vma->vm_file points to the backing shmem file with the generic fops that do not check ashmem permissions like fops of ashmem do. Fix that by disallowing mapping operation for backing shmem file. Change-Id: I5270b92fadab001e9177a05252ba02a7a58ad8a0 Tracked-On: PKT-2924 Bug: 142903466 Reported-by: Jann Horn <[email protected]> Signed-off-by: Suren Baghdasaryan <[email protected]>
- Loading branch information