summaryrefslogtreecommitdiff
path: root/gralloc4/src
diff options
context:
space:
mode:
authorAnkit Goyal <layog@google.com>2021-08-05 17:28:14 +0800
committerAnkit Goyal <layog@google.com>2021-08-05 17:28:14 +0800
commita2e11a389fe2c8a41bbe948c44771c058146f235 (patch)
tree4a215dba40d1523b763a72f330e78fea383c26ca /gralloc4/src
parent2cc6407faa4b312558310c0f0fc7749158f8ed7a (diff)
downloadgchips-a2e11a389fe2c8a41bbe948c44771c058146f235.tar.gz
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
Diffstat (limited to 'gralloc4/src')
-rw-r--r--gralloc4/src/4.x/GrallocMapper.cpp6
1 files changed, 3 insertions, 3 deletions
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<void> 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
+}