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

/system/security/keystore/
H A 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,
136 uid_t getEffectiveUid(int32_t targetUid);
142 bool checkBinderPermission(perm_t permission, int32_t targetUid = UID_SELF);
148 bool checkBinderPermissionSelfOrSystem(perm_t permission, int32_t targetUid);
157 bool checkBinderPermissionOrSelfTarget(perm_t permission, int32_t targetUid);
[all...]
H A Dkey_store_service.cpp68 uid_t targetUid = getEffectiveUid(uid); local
69 if (!checkBinderPermission(P_GET, targetUid)) {
76 ResponseCode responseCode = mKeyStore->getKeyForName(&keyBlob, name8, targetUid, TYPE_GENERIC);
91 int targetUid, int32_t flags) {
92 targetUid = getEffectiveUid(targetUid);
94 checkBinderPermissionAndKeystoreState(P_INSERT, targetUid, flags & KEYSTORE_FLAG_ENCRYPTED);
100 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid, ::TYPE_GENERIC));
105 return mKeyStore->put(filename.string(), &keyBlob, get_user_id(targetUid));
108 int32_t KeyStoreService::del(const String16& name, int targetUid) { argument
90 insert(const String16& name, const uint8_t* item, size_t itemLength, int targetUid, int32_t flags) argument
126 exist(const String16& name, int targetUid) argument
141 list(const String16& prefix, int targetUid, Vector<String16>* matches) argument
280 generate(const String16& name, int32_t targetUid, int32_t keyType, int32_t keySize, int32_t flags, Vector<sp<KeystoreArg>>* args) argument
353 import(const String16& name, const uint8_t* data, size_t length, int targetUid, int32_t flags) argument
464 uid_t targetUid = getEffectiveUid(uid); local
562 uid_t targetUid = getEffectiveUid(targetUid64); local
716 uid_t targetUid = getEffectiveUid(uid); local
849 uid_t targetUid = getEffectiveUid(uid); local
887 uid_t targetUid = getEffectiveUid(uid); local
1277 getEffectiveUid(int32_t targetUid) argument
1288 checkBinderPermission(perm_t permission, int32_t targetUid) argument
1306 checkBinderPermissionSelfOrSystem(perm_t permission, int32_t targetUid) argument
1323 checkBinderPermissionOrSelfTarget(perm_t permission, int32_t targetUid) argument
1340 checkBinderPermissionAndKeystoreState(perm_t permission, int32_t targetUid, bool checkUnlocked) argument
[all...]
H A Dpermissions.h56 * Returns true if the callingUid is allowed to interact in the targetUid's
59 bool is_granted_to(uid_t callingUid, uid_t targetUid);
H A Dpermissions.cpp169 * Returns true if the callingUid is allowed to interact in the targetUid's
172 bool is_granted_to(uid_t callingUid, uid_t targetUid) { argument
173 if (callingUid == targetUid) {
178 if (user.euid == callingUid && user.uid == targetUid) {

Completed in 914 milliseconds