diff options
author | Alex Johnston <acjohnston@google.com> | 2020-10-22 17:51:38 +0100 |
---|---|---|
committer | Alex Johnston <acjohnston@google.com> | 2020-10-22 17:51:38 +0100 |
commit | 26af4ae6f1c12066b0fef2d44b329bae19edb102 (patch) | |
tree | 6246c13af23b629827215190f98697c31f358433 /rs/java/android/renderscript/ProgramStore.java | |
parent | 867119b5f1b1b18bada5ab3b060c06dc6a063a47 (diff) |
Fix access control isAlwaysOnVpnLockdownEnabled
* Let the caller who has PERMISSION_MAINLINE_NETWORK_STACK
bypass the admin authentication check.
* Use getCallerIdentity variant that allows caller to not
be an admin.
* If the caller is a device owner or profile owner, then
the admin must be authenticated
Bug: 171407399
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
atest com.android.cts.devicepolicy.MixedDeviceOwnerTest
Change-Id: Id7152425fd774fc79d511c2e95dbb78ca1e0fc01
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions