summaryrefslogtreecommitdiff
path: root/include/gatekeeper/gatekeeper.h
AgeCommit message (Collapse)Author
2021-02-01Implement DeleteUser/DeleteAllUsersMarco Nelissen
Bug: 160731903 Test: "atest VtsHalGatekeeperV1_0TargetTest" manual testing with added instrumentation Change-Id: I79fab5910a344fdec0e7acf62839146e146ac922
2021-01-26Add DeleteUser/DeleteAllUsers to gatekeeperMarco Nelissen
Not actually implemented yet, but will respond to calls. Also add "-Werror -Wunused-parameter" to rules.mk, since that's what's used by presubmit build checks. Bug: 160731903 Test: "atest VtsHalGatekeeperV1_0TargetTest" manual testing with added instrumentation Change-Id: I3c9c4d3a2d07f4b018cd7b03691b92a777dd9f0d
2019-06-10Gatekeeper: revised buffer handlingJanis Danisevskis
* Copied UniquePtr implementation from system/keymaster * Added move semantics to SizedBuffer * Destructor of SizedBuffer now zeroes the buffer upon destruction * Removed bogus zeroing of SizedBuffer instances * Replaced new with new(nothrow) and check return value. * Fixed mixing of serialization errors with serialized error codes in GateKeeperMessage::Deserialize Bug: 120610663 Test: gatekeeper-unit-tests Change-Id: Iad911bafb939fdcec1e3d19f6d1af0fe98cc2080
2017-08-16Define its own UniquePtr in gatekeeper namespaceoreo-mr1-devJiyong Park
UniquePtr is deprecated and will be removed in a near future. Adding own UniquePtr.h for gatekeeper. This gatekeeper/UniquePtr.h is copied from global shared lib in Trusty. Bug: 63686260 Bug: 63866913 Test: build with BOARD_VNDK_VERSION=current and boot Change-Id: Ibe3bfd39e2381bb0c4a510abd28e1d8cc0eced72
2017-07-19Revert "system/gatekeeper: use proper nativehelper headers"Steven Moreland
This reverts commit 05b35791c3079543c680efba0789f03cfddafacb. ... In file included from system/gatekeeper/gatekeeper.cpp:16: In file included from system/gatekeeper/include/gatekeeper/gatekeeper.h:22: libnativehelper/include/nativehelper/UniquePtr.h:20:10: fatal error: 'cstdlib' file not found #include <cstdlib> // For NULL. Exempt-From-Owner-Approval: build breakage Change-Id: Ib6e181046504b2559093ce6d92d9d701a527ba01
2017-07-18system/gatekeeper: use proper nativehelper headersSteven Moreland
libnativeheader exports headers under nativeheader. These were available before incorrectly as global headers in order to give access to jni.h. Test: modules using system/gatekeeper find headers Bug: 63762847 Change-Id: I1c238bec06b23ddff0550f3abc7670839f432b1b
2015-06-22[gatekeeper] make DoVerify protectedandroid-cts-6.0_r9android-cts-6.0_r8android-cts-6.0_r7android-cts-6.0_r6android-cts-6.0_r5android-cts-6.0_r4android-cts-6.0_r32android-cts-6.0_r31android-cts-6.0_r30android-cts-6.0_r3android-cts-6.0_r29android-cts-6.0_r28android-cts-6.0_r27android-cts-6.0_r26android-cts-6.0_r25android-cts-6.0_r24android-cts-6.0_r23android-cts-6.0_r22android-cts-6.0_r21android-cts-6.0_r20android-cts-6.0_r2android-cts-6.0_r19android-cts-6.0_r18android-cts-6.0_r17android-cts-6.0_r16android-cts-6.0_r15android-cts-6.0_r14android-cts-6.0_r13android-cts-6.0_r12android-cts-6.0_r1android-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r66android-6.0.1_r65android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r20android-6.0.1_r17android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r7android-6.0.0_r6android-6.0.0_r5android-6.0.0_r41android-6.0.0_r4android-6.0.0_r3android-6.0.0_r26android-6.0.0_r25android-6.0.0_r24android-6.0.0_r23android-6.0.0_r2android-6.0.0_r13android-6.0.0_r12android-6.0.0_r11android-6.0.0_r1marshmallow-releasemarshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-releasemarshmallow-mr1-devmarshmallow-dr-releasemarshmallow-dr-devmarshmallow-devmarshmallow-cts-releaseAndres Morales
Bug: 21445004 Change-Id: Iac7967c72b4455813a043b24941f9bfd7bf8878e
2015-06-03allow for non-throttling passwordsAndres Morales
- Fix memory leak when acquiring auth token key Bug: 21118563 Change-Id: I5f840728315eabd080fb23d945722679a692997a
2015-05-27remove unused parametersAndres Morales
Change-Id: Ia04c45f758bfa74e7516265347225e786314ef32
2015-05-27move throttling to GateKeeper layerAndres Morales
throttling is done in SW now, move directly into gatekeeper to harden against root brute force attacks. Bug:21118563 Change-Id: Ie8b22a9e1e6702c9f2007dc7f31e19a1c0fa1696
2015-04-20Get timestamps in milliseconds.master-soongAndres Morales
Avoid NS overflow Change-Id: I666416784503ff6268668590366228b440e88570
2015-04-16Break out password_handle_t into its own fileAndres Morales
Change-Id: Id3069a8bb3a90b7c01c45c2740b9ff618b76086b
2015-04-13Make timestamp 64-bitAndres Morales
Change-Id: I5d0f14a0bfda5cfc5e483836bb63e76b3334b95d
2015-04-12return bool status from GetAuthTokenKeyAndres Morales
Change-Id: Ic7b37bfc296a28bc95885b6582b703d489f8c5ff
2015-04-11Add challenge to GateKeeperAndres Morales
needed for enrollment of auxiliary authenticators Change-Id: Id2d567fc2736dc7c1960b337b4d4d0d93219ccfc
2015-04-11Use hw_auth_token_t in gatekeeperAndres Morales
Change-Id: I0cd567e3e7badbfc0a7c57e9c9ceb4080dd1290c
2015-04-01Remove password file functionalityAndres Morales
Adds very little security at the cost of lots of complexity. Change-Id: I6cb94132e5afe977df5f0caefc2953f4d723449d
2015-03-30Use uint32_t instead of size_tAndres Morales
Must be compatible with code running on arbitrary architectures. Change-Id: I7223f02792929422f21c52024efe073940248fca
2015-03-26More device-level testsAndres Morales
Tests are always good Change-Id: I445bac5914922a8957707c394bd3aa9746e51eb1
2015-03-23remove unused variables / importsAndres Morales
also remove static initialization as it may not be supported in all compilation units Change-Id: I715a2b5ce8c47cbadced2e29a2b5248e02b32136
2015-03-23Allow impls of GateKeeper to keep ownership of key ptrAndres Morales
We require the lifecycle of the key ptr to be maintained by the implementation as different constraints may be placed on keeping keys in memory depending on the implementation. Change-Id: I20180029e738e6ee610db0bca53cc136375634e9
2015-03-23Make time acquisition impl dependentAndres Morales
Different architectures will have different ways of getting time. Goal is to keep GateKeeper base architecture independent so it's easy to reuse. Change-Id: I1e3179367607172410fbc2fe1daa011d610e24e7
2015-03-19Rename keyguard to gatekeeperAndres Morales
Prevents confusion between this component and the actual Keyguard that shows when the device is locked. Change-Id: I47bc02b73947d56841ed126aae4eaf007749038a