summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2020-08-05 11:17:54 -0700
committer chaviw <chaviw@google.com> 2020-08-07 14:37:09 -0700
commit250bcbb5378ccbd5f61a6dc8cf96c3d0679ba683 (patch)
treeddb50b40e3a152db19b088d9315c4194b8df1892 /libs/gui/LayerState.cpp
parent63dd5e25c9ab1935199d08215f167114f1ff6f84 (diff)
Store Layer ownerUid based on metadata or callingUid.
In most cases we want the Layer ownerUid to be the same as the callingUid since the caller requesting to create the layer should be the owner. However, in cases when the requst to create the layer comes from a system process, we should attempt to use the UID passed into the metadata. This is because the system process could request to create a layer on behalf of another process. Test: adb shell dumpsys SurfaceFlinger shows correct uid Bug: 155825630 Change-Id: I633f293e087cdf413f7cb5e296bd923d83da841c
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions