Searched refs:targetUid (Results 1 – 4 of 4) sorted by relevance
/system/security/keystore/ |
D | key_store_service.cpp | 141 uid_t targetUid = getEffectiveUid(uid); in get() local 142 if (!checkBinderPermission(P_GET, targetUid)) { in get() 150 mKeyStore->getKeyForName(&keyBlob, name8, targetUid, TYPE_GENERIC); in get() 169 const hidl_vec<uint8_t>& item, int targetUid, in insert() argument 171 targetUid = getEffectiveUid(targetUid); in insert() 173 checkBinderPermissionAndKeystoreState(P_INSERT, targetUid, flags & KEYSTORE_FLAG_ENCRYPTED); in insert() 179 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid, ::TYPE_GENERIC)); in insert() 184 return mKeyStore->put(filename.string(), &keyBlob, get_user_id(targetUid)); in insert() 187 KeyStoreServiceReturnCode KeyStoreService::del(const String16& name, int targetUid) { in del() argument 188 targetUid = getEffectiveUid(targetUid); in del() [all …]
|
D | key_store_service.h | 45 int targetUid, int32_t flags) override; 46 KeyStoreServiceReturnCode del(const android::String16& name, int targetUid) override; 47 KeyStoreServiceReturnCode exist(const android::String16& name, int targetUid) override; 48 KeyStoreServiceReturnCode list(const android::String16& prefix, int targetUid, 64 generate(const android::String16& name, int32_t targetUid, int32_t keyType, int32_t keySize, 67 int targetUid, int32_t flags) override; 151 uid_t getEffectiveUid(int32_t targetUid); 157 bool checkBinderPermission(perm_t permission, int32_t targetUid = UID_SELF); 163 bool checkBinderPermissionSelfOrSystem(perm_t permission, int32_t targetUid); 172 bool checkBinderPermissionOrSelfTarget(perm_t permission, int32_t targetUid); [all …]
|
D | permissions.cpp | 180 bool is_granted_to(uid_t callingUid, uid_t targetUid) { in is_granted_to() argument 181 if (callingUid == targetUid) { in is_granted_to() 186 if (user.euid == callingUid && user.uid == targetUid) { in is_granted_to()
|
D | permissions.h | 60 bool is_granted_to(uid_t callingUid, uid_t targetUid);
|