Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2da9621d authored by Suren Baghdasaryan's avatar Suren Baghdasaryan Committed by amddan
Browse files

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.

Bug: 142903466
Reported-by: default avatarJann Horn <jannh@google.com>
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: Ib5989cb66ea052dd9aa83e00edfbbe37303ea0c6
Signed-off-by: default avatarAlam Md Danish <amddan@codeaurora.org>
parent e710aa3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment