commit | 4991a94ee20574cbcb47e611ba157fa8dd404171 | [log] [tgz] |
---|---|---|
author | Bill Richardson <wfrichar@google.com> | Tue Jan 09 17:16:16 2018 -0800 |
committer | Bill Richardson <wfrichar@google.com> | Wed Jan 10 11:11:52 2018 -0800 |
tree | 98eadc8b048da5c8581b191a702b39f1132a1245 | |
parent | d707ae0971a5d160e3f8be64bc53c13ee5f0f6a6 [diff] |
Return correct error from ioctl failure A nonzero return value from the ioctl just indicates that an error occurred. The actual error code is found in errno. We'll return -errno, because some ioctls occasionally zero or positive values on success. Oh, and return meaningful errors for all the other failures too. Change-Id: Ide6d65a71aff34c25a58c61d4c28f203818b6d51 Signed-off-by: Bill Richardson <wfrichar@google.com>
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()
citadel
This directory contains the components to support Citadel connected to Android.