Merge "Fix access control checks getOwnerInstalledCaCerts" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cf16a02e27
@@ -18611,9 +18611,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
public StringParceledListSlice getOwnerInstalledCaCerts(@NonNull UserHandle user) {
|
||||
final int userId = user.getIdentifier();
|
||||
final CallerIdentity caller = getCallerIdentity();
|
||||
Preconditions.checkCallAuthorization((userId == caller.getUserId())
|
||||
|| isProfileOwner(caller) || isDefaultDeviceOwner(caller)
|
||||
|| hasFullCrossUsersPermission(caller, userId));
|
||||
Preconditions.checkCallAuthorization(
|
||||
(isProfileOwner(caller) || isDefaultDeviceOwner(caller) || canQueryAdminPolicy(
|
||||
caller)) && hasFullCrossUsersPermission(caller, userId));
|
||||
|
||||
synchronized (getLockObject()) {
|
||||
return new StringParceledListSlice(
|
||||
|
||||
Reference in New Issue
Block a user