summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Atneya Nair <atneya@google.com> 2022-02-07 18:16:48 -0500
committer Atneya Nair <atneya@google.com> 2022-03-14 13:37:04 +0000
commit7ade4f4ca6e0a3e6f7c17fc67c47a18944421f15 (patch)
tree0b49dd71f1c5338ec934b5a7889db93a7e26d085 /libs/gui/LayerDebugInfo.cpp
parent148b13fc443edc84a47805a86a49a32c28232e02 (diff)
Add explicit memfd support to MemoryHeapBase
The default behavior of MemoryHeapBase is to request memory from ashmem in libcutils. This library is being used to migrate from ashmem to memfd, but on supported devices, memfd is still debug only in order to sanitize expectations of callees of the library. As such, we add a flag to explicitly request memfd files, as well as to opt into file sealing of memfd files. Note: the calling process will have to modify selinux permissions to allow tmpfs access to the domains accessing the shared buffer. This is more secure than ashmem as granular acess can be specified. See audioserver_tmpfs in system/selinux for examples. Test: Expected mappings recieved in Audioflinger for flag combos. atest binderMemoryHeapBaseUnitTest Change-Id: I893f7846f4d16b8ccc7f407fb957dccd9ebe62d7
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions