/system/vold/binder/android/os/ |
D | IVold.aidl | 30 void onUserAdded(int userId, int userSerial); in onUserAdded() argument 31 void onUserRemoved(int userId); in onUserRemoved() argument 32 void onUserStarted(int userId); in onUserStarted() argument 33 void onUserStopped(int userId); in onUserStopped() argument 87 void createUserKey(int userId, int userSerial, boolean ephemeral); in createUserKey() argument 88 void destroyUserKey(int userId); in destroyUserKey() argument 90 void addUserKeyAuth(int userId, int userSerial, @utf8InCpp String token, in addUserKeyAuth() argument 92 void fixateNewestUserKeyAuth(int userId); in fixateNewestUserKeyAuth() argument 94 void unlockUserKey(int userId, int userSerial, @utf8InCpp String token, in unlockUserKey() argument 96 void lockUserKey(int userId); in lockUserKey() argument [all …]
|
/system/security/keystore/ |
D | keystore_keymaster_enforcement.h | 88 bool is_device_locked(int32_t userId) const override { in is_device_locked() argument 90 if (mIsDeviceLockedForUser.count(userId) == 0) return true; in is_device_locked() 91 return mIsDeviceLockedForUser.find(userId)->second; in is_device_locked() 94 void set_device_locked(bool isLocked, int32_t userId) { in set_device_locked() argument 95 mIsDeviceLockedForUser[userId] = isLocked; in set_device_locked()
|
D | user_state.cpp | 38 UserState::UserState(uid_t userId) in UserState() argument 39 : mMasterKeyEntry(".masterkey", "user_" + std::to_string(userId), userId, /* masterkey */ true), in UserState() 40 mUserId(userId), mState(STATE_UNINITIALIZED), mRetry(MAX_RETRY) {} in UserState() 46 bool UserState::operator<(uid_t userId) const { in operator <() 47 return getUserId() < userId; in operator <() 50 bool operator<(uid_t userId, const UserState& rhs) { in operator <() argument 51 return userId < rhs.getUserId(); in operator <() 293 LockedUserState<UserState> UserStateDB::getUserState(uid_t userId) { in getUserState() argument 297 std::tie(it, inserted) = mMasterKeys.emplace(userId, userId); in getUserState() 304 ALOGE("User initialization failed for %u; subsequent operations will fail", userId); in getUserState() [all …]
|
D | KeyStore.h | 102 State getState(uid_t userId) { return mUserStateDB.getUserState(userId)->getState(); } 104 ResponseCode initializeUser(const android::String8& pw, uid_t userId); 107 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId); 108 ResponseCode readMasterKey(const android::String8& pw, uid_t userId); 118 void resetUser(uid_t userId, bool keepUnenryptedEntries); 119 bool isEmpty(uid_t userId) const; 121 void lock(uid_t userId); 132 uid_t userId, int32_t flags);
|
D | KeyStore.cpp | 81 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() argument 82 auto userState = mUserStateDB.getUserState(userId); in initializeUser() 92 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() argument 93 auto userState = mUserStateDB.getUserState(userId); in writeMasterKey() 97 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() argument 98 auto userState = mUserStateDB.getUserState(userId); in readMasterKey() 136 void KeyStore::resetUser(uid_t userId, bool keepUnenryptedEntries) { in resetUser() argument 140 auto userState = mUserStateDB.getUserState(userId); in resetUser() 197 userState = mUserStateDB.getUserState(userId); in resetUser() 199 ALOGE("Failed to delete user %d's master key", userId); in resetUser() [all …]
|
D | user_state.h | 46 explicit UserState(uid_t userId); 75 bool operator<(uid_t userId) const; 103 bool operator<(uid_t userId, const UserState& rhs); 107 LockedUserState<UserState> getUserState(uid_t userId); 109 LockedUserState<const UserState> getUserState(uid_t userId) const;
|
D | key_store_service.cpp | 148 Status KeyStoreService::getState(int32_t userId, int32_t* aidl_return) { in getState() argument 154 *aidl_return = mKeyStore->getState(userId); in getState() 293 const int32_t userId = get_user_id(callingUid); in listUidsOfAuthBoundKeys() local 302 auto userState = mKeyStore->getUserStateDB().getUserState(userId); in listUidsOfAuthBoundKeys() 317 ALOGE("Error listing blob entries for user %d", userId); in listUidsOfAuthBoundKeys() 367 Status KeyStoreService::onUserPasswordChanged(int32_t userId, const String16& password, in onUserPasswordChanged() argument 376 ALOGI("Secure lockscreen for user %d removed, deleting encrypted entries", userId); in onUserPasswordChanged() 377 mKeyStore->resetUser(userId, true); in onUserPasswordChanged() 382 switch (mKeyStore->getState(userId)) { in onUserPasswordChanged() 386 *aidl_return = static_cast<int32_t>(mKeyStore->initializeUser(password8, userId)); in onUserPasswordChanged() [all …]
|
D | key_store_service.h | 54 ::android::binder::Status getState(int32_t userId, int32_t* _aidl_return) override; 70 ::android::binder::Status onUserPasswordChanged(int32_t userId, 73 ::android::binder::Status lock(int32_t userId, int32_t* _aidl_return) override; 74 ::android::binder::Status unlock(int32_t userId, const ::android::String16& userPassword, 76 ::android::binder::Status isEmpty(int32_t userId, int32_t* _aidl_return) override; 136 ::android::binder::Status onUserAdded(int32_t userId, int32_t parentId, 138 ::android::binder::Status onUserRemoved(int32_t userId, int32_t* _aidl_return) override; 166 ::android::binder::Status onKeyguardVisibilityChanged(bool isShowing, int32_t userId,
|
D | auth_token_table.cpp | 239 return (token_.userId == entry.token_.userId && in Supersedes()
|
D | keymaster_enforcement.h | 194 virtual bool is_device_locked(int32_t userId) const = 0;
|
D | auth_token_table.h | 142 return (sid == token_.userId || sid == token_.authenticatorId) && in SatisfiesAuth()
|
/system/vold/ |
D | VoldNativeService.h | 40 binder::Status onUserAdded(int32_t userId, int32_t userSerial); 41 binder::Status onUserRemoved(int32_t userId); 42 binder::Status onUserStarted(int32_t userId); 43 binder::Status onUserStopped(int32_t userId); 110 binder::Status createUserKey(int32_t userId, int32_t userSerial, bool ephemeral); 111 binder::Status destroyUserKey(int32_t userId); 113 binder::Status addUserKeyAuth(int32_t userId, int32_t userSerial, const std::string& token, 115 binder::Status fixateNewestUserKeyAuth(int32_t userId); 117 binder::Status unlockUserKey(int32_t userId, int32_t userSerial, const std::string& token, 119 binder::Status lockUserKey(int32_t userId); [all …]
|
D | VolumeManager.cpp | 367 int VolumeManager::linkPrimary(userid_t userId) { in linkPrimary() argument 370 source = StringPrintf("%s/%d", source.c_str(), userId); in linkPrimary() 374 std::string target(StringPrintf("/mnt/user/%d/primary", userId)); in linkPrimary() 380 int VolumeManager::onUserAdded(userid_t userId, int userSerialNumber) { in onUserAdded() argument 381 mAddedUsers[userId] = userSerialNumber; in onUserAdded() 385 int VolumeManager::onUserRemoved(userid_t userId) { in onUserRemoved() argument 386 mAddedUsers.erase(userId); in onUserRemoved() 390 int VolumeManager::onUserStarted(userid_t userId) { in onUserStarted() argument 391 LOG(VERBOSE) << "onUserStarted: " << userId; in onUserStarted() 395 std::string path(StringPrintf("%s/%d", kPathUserMount, userId)); in onUserStarted() [all …]
|
D | VoldNativeService.cpp | 251 binder::Status VoldNativeService::onUserAdded(int32_t userId, int32_t userSerial) { in onUserAdded() argument 255 return translate(VolumeManager::Instance()->onUserAdded(userId, userSerial)); in onUserAdded() 258 binder::Status VoldNativeService::onUserRemoved(int32_t userId) { in onUserRemoved() argument 262 return translate(VolumeManager::Instance()->onUserRemoved(userId)); in onUserRemoved() 265 binder::Status VoldNativeService::onUserStarted(int32_t userId) { in onUserStarted() argument 269 return translate(VolumeManager::Instance()->onUserStarted(userId)); in onUserStarted() 272 binder::Status VoldNativeService::onUserStopped(int32_t userId) { in onUserStopped() argument 276 return translate(VolumeManager::Instance()->onUserStopped(userId)); in onUserStopped() 740 binder::Status VoldNativeService::createUserKey(int32_t userId, int32_t userSerial, bool ephemeral)… in createUserKey() argument 744 return translateBool(fscrypt_vold_create_user_key(userId, userSerial, ephemeral)); in createUserKey() [all …]
|
D | Utils.cpp | 678 std::string BuildDataSystemLegacyPath(userid_t userId) { in BuildDataSystemLegacyPath() argument 679 return StringPrintf("%s/system/users/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemLegacyPath() 682 std::string BuildDataSystemCePath(userid_t userId) { in BuildDataSystemCePath() argument 683 return StringPrintf("%s/system_ce/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemCePath() 686 std::string BuildDataSystemDePath(userid_t userId) { in BuildDataSystemDePath() argument 687 return StringPrintf("%s/system_de/%u", BuildDataPath("").c_str(), userId); in BuildDataSystemDePath() 690 std::string BuildDataMiscLegacyPath(userid_t userId) { in BuildDataMiscLegacyPath() argument 691 return StringPrintf("%s/misc/user/%u", BuildDataPath("").c_str(), userId); in BuildDataMiscLegacyPath() 694 std::string BuildDataMiscCePath(userid_t userId) { in BuildDataMiscCePath() argument 695 return StringPrintf("%s/misc_ce/%u", BuildDataPath("").c_str(), userId); in BuildDataMiscCePath() [all …]
|
D | VolumeManager.h | 89 int onUserAdded(userid_t userId, int userSerialNumber); 90 int onUserRemoved(userid_t userId); 91 int onUserStarted(userid_t userId); 92 int onUserStopped(userid_t userId); 138 int linkPrimary(userid_t userId);
|
/system/security/keystore/binder/android/security/keystore/ |
D | IKeystoreService.aidl | 32 int getState(int userId); in getState() argument 39 int onUserPasswordChanged(int userId, String newPassword); in onUserPasswordChanged() argument 40 int lock(int userId); in lock() argument 41 int unlock(int userId, String userPassword); in unlock() argument 42 int isEmpty(int userId); in isEmpty() argument 65 int onUserAdded(int userId, int parentId); in onUserAdded() argument 66 int onUserRemoved(int userId); in onUserRemoved() argument 77 int onKeyguardVisibilityChanged(in boolean isShowing, in int userId); in onKeyguardVisibilityChanged() argument
|
/system/core/run-as/ |
D | run-as.cpp | 186 int userId = 0; in main() local 188 userId = atoi(argv[3]); in main() 189 if (userId < 0) error(1, 0, "negative user id: %d", userId); in main() 204 if (userId > 0) { in main() 206 if (asprintf(&info.data_dir, "/data/user/%d/%s", userId, pkgname) == -1) { in main() 217 if ((UID_MAX - info.uid) / AID_USER_OFFSET < (uid_t)userId) { in main() 218 error(1, 0, "user id too big: %d", userId); in main() 222 uid_t userAppId = (AID_USER_OFFSET * userId) + info.uid; in main()
|
/system/core/storaged/binder/android/os/ |
D | IStoraged.aidl | 21 void onUserStarted(int userId); in onUserStarted() argument 22 void onUserStopped(int userId); in onUserStopped() argument
|
/system/core/storaged/include/ |
D | storaged_service.h | 40 binder::Status onUserStarted(int32_t userId); 41 binder::Status onUserStopped(int32_t userId);
|
/system/security/keystore/include/keystore/ |
D | keystore_hidl_support.h | 92 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in authToken2HidlVec() 103 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec() 124 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in hidlVec2Km3AuthToken() 135 pos = copy_bytes_from_iterator(&token.userId, pos); in hidlVec2Km3AuthToken()
|
/system/core/storaged/ |
D | storaged_service.cpp | 167 binder::Status StoragedService::onUserStarted(int32_t userId) { in onUserStarted() argument 168 storaged_sp->add_user_ce(userId); in onUserStarted() 172 binder::Status StoragedService::onUserStopped(int32_t userId) { in onUserStopped() argument 173 storaged_sp->remove_user_ce(userId); in onUserStopped()
|
/system/keymaster/ng/include/ |
D | keystore_hidl_support.h | 107 static_assert(1 /* version size */ + sizeof(token.challenge) + sizeof(token.userId) + in authToken2HidlVec() 118 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec()
|
/system/security/keystore/tests/ |
D | auth_token_table_test.cpp | 68 token.userId = rsid; in make_token() 105 EXPECT_EQ(1U, found.userId); in TEST() 111 EXPECT_EQ(1U, found.userId); in TEST() 117 EXPECT_EQ(3U, found.userId); in TEST() 123 EXPECT_EQ(3U, found.userId); in TEST()
|
/system/core/logd/ |
D | LogStatistics.cpp | 259 uid_t userId = uid % AID_USER_OFFSET; in uidToName() local 260 const char* name = android::uidToName(userId); in uidToName() 261 if (!name && (userId > (AID_SHARED_GID_START - AID_APP))) { in uidToName() 262 name = android::uidToName(userId - (AID_SHARED_GID_START - AID_APP)); in uidToName()
|