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:Jann Horn <jannh@google.com> Signed-off-by:
Suren Baghdasaryan <surenb@google.com> Change-Id: Ib5989cb66ea052dd9aa83e00edfbbe37303ea0c6 Signed-off-by:
Alam Md Danish <amddan@codeaurora.org>
Loading
Please register or sign in to comment