Home
last modified time | relevance | path

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

/system/security/keystore/
Dkey_store_service.cpp157 uid_t targetUid = getEffectiveUid(uid); in get() local
158 if (!checkBinderPermission(P_GET, targetUid)) { in get()
171 mKeyStore->getKeyForName(name8, targetUid, TYPE_GENERIC); in get()
185 int targetUid, int32_t flags, int32_t* aidl_return) { in insert() argument
186 targetUid = getEffectiveUid(targetUid); in insert()
188 checkBinderPermissionAndKeystoreState(P_INSERT, targetUid, flags & KEYSTORE_FLAG_ENCRYPTED); in insert()
195 auto lockedEntry = mKeyStore->getLockedBlobEntryIfNotExists(name8.string(), targetUid); in insert()
198 ALOGE("failed to grab lock on blob entry %u_%s", targetUid, name8.string()); in insert()
210 Status KeyStoreService::del(const String16& name, int targetUid, int32_t* aidl_return) { in del() argument
211 targetUid = getEffectiveUid(targetUid); in del()
[all …]
Dpermissions.cpp201 bool is_granted_to(uid_t callingUid, uid_t targetUid) { in is_granted_to() argument
202 if (callingUid == targetUid) { in is_granted_to()
207 if (user.euid == callingUid && user.uid == targetUid) { in is_granted_to()
Dpermissions.h65 bool is_granted_to(uid_t callingUid, uid_t targetUid);
Dkey_store_service.h178 uid_t getEffectiveUid(int32_t targetUid);
184 bool checkBinderPermission(perm_t permission, int32_t targetUid = UID_SELF);
190 bool checkBinderPermissionSelfOrSystem(perm_t permission, int32_t targetUid);
199 bool checkBinderPermissionOrSelfTarget(perm_t permission, int32_t targetUid);
210 int32_t targetUid = -1,