summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Dipankar Bhardwaj <dipankarb@google.com> 2024-03-20 16:35:49 +0000
committer Dipankar Bhardwaj <dipankarb@google.com> 2024-03-27 12:28:55 +0000
commitd8451a7448058baf0383d9674127e1475727431a (patch)
tree74efdc0fd9c68a41e1d57fca8edb306c47ce7371 /libs/androidfw/StringPool.cpp
parentfc7c11e09f60e9cc7026d07be861d12d3e241ece (diff)
Clear calling identity before call to UserManagerService
UserManagerService requires calling uid to have query or create users permission to fetch user info. When a volume is ejected from DocumentsUI, ejectRoot call is triggered to ExternalStorageProvider which further calls into StorageManagerService unmount. StorageManagerService checks for permission "android.permission.MOUNT_UNMOUNT_FILESYSTEMS" which ExternalStorageProvider has. For further call into UserManagerService, ExternalStorageProvider's identity is used, which fails as ExternalStorageProvider does not CREATE_USERS or QUERY_USERS permission. Call from StorageManagerService should be made with its own identity in this case given unmount() does not require caller to hold QUERY/CREATE user permission. Bug: 209931583 Bug: 267955224 Change-Id: I9d00c7892b75345e1c4e83f1ec819fd9f4c36922 Test: locally
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions