diff options
author | Yoshiaki Naka <yoshiaki.naka@sony.com> | 2018-04-06 11:35:05 +0900 |
---|---|---|
committer | Ruchi Kandoi <kandoiruchi@google.com> | 2018-04-09 11:23:41 -0700 |
commit | 55376b4dad37f48c1deebab431d0dc2eec26fc91 (patch) | |
tree | b91149ec3c5b3698297921e75f228cad06e10c09 | |
parent | ee4e841e19af13ab78b7b7f385c3245019ff3806 (diff) | |
download | SecureElement-55376b4dad37f48c1deebab431d0dc2eec26fc91.tar.gz |
Clear the access rule cache and the refresh tag when resetting ACE
Access Control Enforcer releases the instances of ARA controller and ARF
controller when it is reset, but the cache data of the access rules and
the refresh tag remain in the current implementation. The cache should
also be reset to avoid unexpected reuse of the cache.
Bug: 77759129
Test: Manual test to confirm that the cached is discarded as expected.
Change-Id: Id29d3c8e8118178db8c4ede915799a8129e34cb9
(cherry picked from commit cdf3a7c15cdb31c5e534df9021b720672cacf571)
-rw-r--r-- | src/com/android/se/security/AccessControlEnforcer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/se/security/AccessControlEnforcer.java b/src/com/android/se/security/AccessControlEnforcer.java index 7273cdd..58a433b 100644 --- a/src/com/android/se/security/AccessControlEnforcer.java +++ b/src/com/android/se/security/AccessControlEnforcer.java @@ -133,6 +133,7 @@ public class AccessControlEnforcer { // Destroy any previous Controler // in order to reset the ACE Log.i(mTag, "Reset the ACE for terminal:" + mTerminal.getName()); + mAccessRuleCache.reset(); mAraController = null; mArfController = null; } |