summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Oli Lan <olilan@google.com> 2023-04-05 11:46:18 +0100
committer Oli Lan <olilan@google.com> 2023-04-05 11:46:18 +0100
commita22346a17a82fd27c459866ca4cf7ef71a0409ff (patch)
tree95a0b884974a9f82346aefa4ecf69c8eabb946c7 /libs/androidfw/ObbFile.cpp
parent901bee878feeebebf548b173f417b48713cba750 (diff)
Fix potential deadlock in applyUserRestrictions methods.
This fixes a lock inversion issue where the user lock is being taken out while the restrictions lock is held in UserManagerService. The user lock is being taken out to retrieve user data in order to call scheduleWriteUser, but when the write occurs, we don't actually use that UserData as it is retrieved again. We only use the provided UserData to get the user id. So, this CL changes scheduleWriteUser to take the user id instead. Bug: 273083107 Test: atest UserManagerTest Change-Id: I11db509235dfc59642871c168bc2f3e1daabe821
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions