keymaster: address UAF bug in attest() This bug detected by HWSan. Bug: 129562815 Test: builds Change-Id: Ia9ebcd99213cd0d8d954b574b850ca563092d91b Signed-off-by: nagendra modadugu <[email protected]>
Android communicates with Nugget apps in order to implement security related HALs. Currently, those HALs are Keymaster, Weaver and OemLock.
Apps that define a protobuf service will have an app interface class autogenerated. These classes will wrap a NuggetClient. The generator can be found in the generator directory.
Work in progress.
Currently, everything is synchronous and just exposes the call_application() function from the Nugget transport API. In future, asynchronous calls may be desired. Support for this could be added in:
NuggetClient on top of call_application()citadelThis directory contains the components to support Citadel connected to Android.