From a2e11a389fe2c8a41bbe948c44771c058146f235 Mon Sep 17 00:00:00 2001 From: Ankit Goyal Date: Thu, 5 Aug 2021 17:28:14 +0800 Subject: Remove getppid call from gralloc mapper Some of the codec components run in minijail which blocks getppid calls. We should update the rules in codec as well to actually allow this syscall. For now this should work as a WA. Bug: 195608566 Test: Video playback in photos app Change-Id: I63cb1a74ebbef8e1fbc17a05a253f94c9f571402 --- gralloc4/src/4.x/GrallocMapper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gralloc4/src') diff --git a/gralloc4/src/4.x/GrallocMapper.cpp b/gralloc4/src/4.x/GrallocMapper.cpp index d60a374..e0ac1de 100644 --- a/gralloc4/src/4.x/GrallocMapper.cpp +++ b/gralloc4/src/4.x/GrallocMapper.cpp @@ -171,8 +171,8 @@ Return GrallocMapper::getReservedRegion(void *buffer, getReservedRegion_cb extern "C" IMapper *HIDL_FETCH_IMapper(const char * /* name */) { - MALI_GRALLOC_LOGV("Arm Module IMapper %d.%d , pid = %d ppid = %d ", GRALLOC_VERSION_MAJOR, - (HIDL_MAPPER_VERSION_SCALED - (GRALLOC_VERSION_MAJOR * 100)) / 10, getpid(), getppid()); + MALI_GRALLOC_LOGV("Arm Module IMapper %d.%d , pid = %d", GRALLOC_VERSION_MAJOR, + (HIDL_MAPPER_VERSION_SCALED - (GRALLOC_VERSION_MAJOR * 100)) / 10, getpid()); return new arm::mapper::GrallocMapper(); -} \ No newline at end of file +} -- cgit v1.2.3