Home
last modified time | relevance | path

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

/system/security/keystore/
Dkey_store_service.cpp68 uid_t targetUid = getEffectiveUid(uid); in get() local
69 if (!checkBinderPermission(P_GET, targetUid)) { in get()
76 ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob, name8, targetUid, TYPE_GENERIC); in get()
91 int targetUid, int32_t flags) { in insert() argument
92 targetUid = getEffectiveUid(targetUid); in insert()
94 checkBinderPermissionAndKeystoreState(P_INSERT, targetUid, flags & KEYSTORE_FLAG_ENCRYPTED); in insert()
100 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid)); in insert()
105 return mKeyStore->put(filename.string(), &keyBlob, get_user_id(targetUid)); in insert()
108 int32_t KeyStoreService::del(const String16& name, int targetUid) { in del() argument
109 targetUid = getEffectiveUid(targetUid); in del()
[all …]
Dkey_store_service.h41 int32_t insert(const String16& name, const uint8_t* item, size_t itemLength, int targetUid,
43 int32_t del(const String16& name, int targetUid);
44 int32_t exist(const String16& name, int targetUid);
45 int32_t list(const String16& prefix, int targetUid, Vector<String16>* matches);
58 int32_t generate(const String16& name, int32_t targetUid, int32_t keyType, int32_t keySize,
60 int32_t import(const String16& name, const uint8_t* data, size_t length, int targetUid,
134 uid_t getEffectiveUid(int32_t targetUid);
140 bool checkBinderPermission(perm_t permission, int32_t targetUid = UID_SELF);
146 bool checkBinderPermissionSelfOrSystem(perm_t permission, int32_t targetUid);
155 bool checkBinderPermissionOrSelfTarget(perm_t permission, int32_t targetUid);
[all …]
Dpermissions.cpp172 bool is_granted_to(uid_t callingUid, uid_t targetUid) { in is_granted_to() argument
173 if (callingUid == targetUid) { in is_granted_to()
178 if (user.euid == callingUid && user.uid == targetUid) { in is_granted_to()
Dpermissions.h59 bool is_granted_to(uid_t callingUid, uid_t targetUid);