summaryrefslogtreecommitdiff
path: root/libutils/StrongPointer_test.cpp
diff options
context:
space:
mode:
authorJoel Fernandes <joelaf@google.com>2019-01-31 19:27:23 -0500
committerJoel Fernandes <joelaf@google.com>2019-02-07 00:40:22 +0000
commitae7f052328d6c2c06f6e9335a6cd4bb7efdced2b (patch)
tree57c37c161ed6a5f97a474431ecfd84136fd18774 /libutils/StrongPointer_test.cpp
parent519440468bbeb6e210d18664bc487bf59b85759e (diff)
init: set the sys.use_memfd property to false
The sys.use_memfd property is set by default to false in Android to temporarily disable memfd, till vendor and apps are ready for it. The main issue: either apps or vendor processes can directly make ashmem IOCTLs on FDs they receive by assuming they are ashmem, without going through libcutils. Such fds could have very well be originally created with libcutils hence they could be memfd. Thus the IOCTLs will break. Set default value of sys.use_memfd property to true once the issue is resolved, so that the code can then self-detect if kernel support is present on the device. The property can also set to true from adb shell, for debugging. Bug: 113362644 Change-Id: I0f572ef36cac2a58fe308ddb90bbeffbecdaed3b Signed-off-by: Joel Fernandes <joelaf@google.com>
Diffstat (limited to 'libutils/StrongPointer_test.cpp')
0 files changed, 0 insertions, 0 deletions