Commit graph

4 commits

Author SHA1 Message Date
Steven Moreland
23115b098d keystore: use getCallingSid
Bug: 121035042
Test: boot. SafetyNet logs go away when device has new kernel.
Change-Id: Iebfdc8b221de1070aeaf6fc1ac5c02cc6987b285
2019-01-10 16:20:20 -08:00
Janis Danisevskis
31b44f2409 Fix multiple issues with the keystore grant mechanism
1. Ungrant did not check the callers uid which allowed any caller
   to remove grants to any key.
2. Grants were not removed when a key was deleted.
3. clean_uid did not clear the grant cache of the target uid.
   This would leave state grants that could have been used
   by a new app that happend to get the same uid as the one
   that was previously uninstalled.
4. Various paths did not respect grants: del, exist, getmtime
   The del path was particularly awkward because it is required
   by upgradeKeyBlob. This means it must work when a key that needs
   upgrading is accessed through a grant alias.

Bug: 65851049
Change-Id: I6709b7562d47ad6156bee88a9e2d961f8a4a797d
2017-09-26 14:55:08 -07:00
Shawn Willden
e2a7b52849 Fix unique ID attestation.
Test: CTS test will be added.
Bug: 34671471
Change-Id: I2f36b85ba7a46e7aabe83b8e0c58a8092ee1f643
2017-04-11 11:48:50 -06:00
Shawn Willden
c1d1feee51 Refactor keystore.
This CL isn't nearly as big as it looks.  It doesn't change keystore
functionality, it just moves all of the classes out of the former
keystore.cpp into their own .h and .cpp files.

Note that this is a cherry-pick from:

    https://android-review.googlesource.com/#/c/194971

Change-Id: Ide326c4f1d03984994d1bd9a76fa68d37da230dc
2016-01-26 22:48:06 -07:00