Home | History | Annotate | Download | only in keystore

Lines Matching refs:targetUid

227  * Returns true if the callingUid is allowed to interact in the targetUid's
230 static bool is_granted_to(uid_t callingUid, uid_t targetUid) {
233 if (user.euid == callingUid && user.uid == targetUid) {
1475 int32_t insert(const String16& name, const uint8_t* item, size_t itemLength, int targetUid,
1489 if (targetUid == -1) {
1490 targetUid = callingUid;
1491 } else if (!is_granted_to(callingUid, targetUid)) {
1496 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid));
1504 int32_t del(const String16& name, int targetUid) {
1511 if (targetUid == -1) {
1512 targetUid = callingUid;
1513 } else if (!is_granted_to(callingUid, targetUid)) {
1518 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid));
1529 int32_t exist(const String16& name, int targetUid) {
1536 if (targetUid == -1) {
1537 targetUid = callingUid;
1538 } else if (!is_granted_to(callingUid, targetUid)) {
1543 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid));
1551 int32_t saw(const String16& prefix, int targetUid, Vector<String16>* matches) {
1558 if (targetUid == -1) {
1559 targetUid
1560 } else if (!is_granted_to(callingUid, targetUid)) {
1564 UserState* userState = mKeyStore->getUserState(targetUid);
1572 String8 filename(mKeyStore->getKeyNameForUid(prefix8, targetUid));
1712 int32_t generate(const String16& name, int32_t targetUid, int32_t keyType, int32_t keySize,
1720 if (targetUid == -1) {
1721 targetUid = callingUid;
1722 } else if (!is_granted_to(callingUid, targetUid)) {
1863 int32_t import(const String16& name, const uint8_t* data, size_t length, int targetUid,
1871 if (targetUid == -1) {
1872 targetUid = callingUid;
1873 } else if (!is_granted_to(callingUid, targetUid)) {
1884 String8 filename(mKeyStore->getKeyNameForUidWithDir(name8, targetUid));
2044 int32_t del_key(const String16& name, int targetUid) {
2051 if (targetUid == -1) {
2052 targetUid = callingUid;
2053 } else if (!is_granted_to(callingUid, targetUid)) {
2230 int32_t clear_uid(int64_t targetUid) {
2257 int n = snprintf(prefix, NAME_MAX, "%u_", static_cast<uid_t>(targetUid));