Home
last modified time | relevance | path

Searched refs:targetUid (Results 1 – 4 of 4) sorted by relevance

/system/security/keystore/
Dkey_store_service.cpp165 uid_t targetUid = getEffectiveUid(uid); in get() local
166 if (!checkBinderPermission(P_GET, targetUid)) { in get()
175 mKeyStore->getKeyForName(&keyBlob, name8, targetUid, TYPE_GENERIC); in get()
189 int targetUid, int32_t flags, int32_t* aidl_return) { in insert() argument
191 targetUid = getEffectiveUid(targetUid); in insert()
193 checkBinderPermissionAndKeystoreState(P_INSERT, targetUid, flags & KEYSTORE_FLAG_ENCRYPTED); in insert()
200 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid, ::TYPE_GENERIC)); in insert()
206 static_cast<int32_t>(mKeyStore->put(filename.string(), &keyBlob, get_user_id(targetUid))); in insert()
210 Status KeyStoreService::del(const String16& name, int targetUid, int32_t* aidl_return) { in del() argument
212 targetUid = getEffectiveUid(targetUid); in del()
[all …]
Dpermissions.cpp180 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()
Dkey_store_service.h195 uid_t getEffectiveUid(int32_t targetUid);
201 bool checkBinderPermission(perm_t permission, int32_t targetUid = UID_SELF);
207 bool checkBinderPermissionSelfOrSystem(perm_t permission, int32_t targetUid);
216 bool checkBinderPermissionOrSelfTarget(perm_t permission, int32_t targetUid);
227 int32_t targetUid = -1,
289 KeyStoreServiceReturnCode upgradeKeyBlob(const android::String16& name, uid_t targetUid,
Dpermissions.h60 bool is_granted_to(uid_t callingUid, uid_t targetUid);