/system/security/keystore/ |
D | KeyStore.h | 74 State getState(uid_t userId) { return getUserState(userId)->getState(); } in getState() 76 ResponseCode initializeUser(const android::String8& pw, uid_t userId); 78 ResponseCode copyMasterKey(uid_t srcUser, uid_t dstUser); 79 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId); 80 ResponseCode readMasterKey(const android::String8& pw, uid_t userId); 83 android::String8 getKeyNameForUid(const android::String8& keyName, uid_t uid, 85 android::String8 getKeyNameForUidWithDir(const android::String8& keyName, uid_t uid, 87 NullOr<android::String8> getBlobFileNameIfExists(const android::String8& alias, uid_t uid, 95 void resetUser(uid_t userId, bool keepUnenryptedEntries); 96 bool isEmpty(uid_t userId) const; [all …]
|
D | grant_store.h | 35 Grant(const std::string& alias, const std::string& owner_dir_name, const uid_t owner_uid, 40 uid_t owner_uid_; ///< key owner uid 59 std::string put(const uid_t uid, const std::string& alias, const std::string& owner_dir_name, 60 const uid_t owner_uid); 61 const Grant* get(const uid_t uid, const std::string& alias) const; 62 … bool removeByFileAlias(const uid_t granteeUid, const uid_t granterUid, const std::string& alias); 63 void removeAllGrantsToKey(const uid_t granterUid, const std::string& alias); 64 void removeAllGrantsToUid(const uid_t granteeUid); 70 std::unordered_map<uid_t, std::set<Grant, std::less<>>> grants_;
|
D | permissions.h | 52 uid_t get_keystore_euid(uid_t uid); 54 bool has_permission(uid_t uid, perm_t perm, pid_t spid); 60 bool is_granted_to(uid_t callingUid, uid_t targetUid);
|
D | permissions.cpp | 53 uid_t uid; 54 uid_t euid; 63 uid_t uid; 80 uid_t uid; 120 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid) { in keystore_selinux_check_access() 149 uid_t get_keystore_euid(uid_t uid) { in get_keystore_euid() 160 bool has_permission(uid_t uid, perm_t perm, pid_t spid) { in has_permission() 180 bool is_granted_to(uid_t callingUid, uid_t targetUid) { in is_granted_to()
|
D | keystore_utils.h | 39 uid_t get_app_id(uid_t uid); 45 uid_t get_user_id(uid_t uid); 66 void log_key_integrity_violation(const char* name, uid_t uid);
|
D | KeyStore.cpp | 90 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() 95 ResponseCode KeyStore::copyMasterKey(uid_t srcUser, uid_t dstUser) { in copyMasterKey() 101 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() 106 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() 155 android::String8 KeyStore::getKeyNameForUid(const android::String8& keyName, uid_t uid, in getKeyNameForUid() 166 android::String8 KeyStore::getKeyNameForUidWithDir(const android::String8& keyName, uid_t uid, in getKeyNameForUidWithDir() 180 NullOr<android::String8> KeyStore::getBlobFileNameIfExists(const android::String8& alias, uid_t uid, in getBlobFileNameIfExists() 187 uid_t euid = get_keystore_euid(uid); in getBlobFileNameIfExists() 204 void KeyStore::resetUser(uid_t userId, bool keepUnenryptedEntries) { in resetUser() 264 bool KeyStore::isEmpty(uid_t userId) const { in isEmpty() [all …]
|
D | grant_store.cpp | 28 Grant::Grant(const std::string& alias, const std::string& owner_dir_name, const uid_t owner_uid, in Grant() 44 std::string GrantStore::put(const uid_t uid, const std::string& alias, in put() 45 const std::string& owner_dir_name, const uid_t owner_uid) { in put() 64 const Grant* GrantStore::get(const uid_t uid, const std::string& alias) const { in get() 78 bool GrantStore::removeByFileAlias(const uid_t granteeUid, const uid_t granterUid, in removeByFileAlias() 90 void GrantStore::removeAllGrantsToKey(const uid_t granterUid, const std::string& alias) { in removeAllGrantsToKey() 101 void GrantStore::removeAllGrantsToUid(const uid_t granteeUid) { in removeAllGrantsToUid()
|
/system/netd/server/ |
D | NetworkController.h | 94 uint32_t getNetworkForDns(unsigned* netId, uid_t uid) const; 95 unsigned getNetworkForUser(uid_t uid) const; 96 unsigned getNetworkForConnect(uid_t uid) const; 97 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const; 109 Permission getPermissionForUser(uid_t uid) const; 110 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids); 111 int checkUserNetworkAccess(uid_t uid, unsigned netId) const; 124 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT; 126 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT; 134 bool canProtect(uid_t uid) const; [all …]
|
D | VirtualNetwork.h | 42 bool appliesToUser(uid_t uid) const; 45 const std::set<uid_t>& protectableUsers) WARN_UNUSED_RESULT; 47 const std::set<uid_t>& protectableUsers) WARN_UNUSED_RESULT; 54 const std::set<uid_t>& protectableUsers);
|
D | TrafficController.h | 58 int tagSocket(int sockFd, uint32_t tag, uid_t uid); 70 int setCounterSet(int counterSetNum, uid_t uid); 80 int deleteTagData(uint32_t tag, uid_t uid); 93 int changeUidOwnerRule(ChildChain chain, const uid_t uid, FirewallRule rule, FirewallType type); 95 int removeUidOwnerRule(const uid_t uid); 100 netdutils::Status updateOwnerMapEntry(BpfMap<uint32_t, uint8_t>& map, uid_t uid,
|
/system/core/libcutils/ |
D | qtaguid.cpp | 35 int (*netdTagSocket)(int, uint32_t, uid_t); 37 int (*netdSetCounterSet)(uint32_t, uid_t); 38 int (*netdDeleteTagData)(uint32_t, uid_t); 41 int dummyTagSocket(int, uint32_t, uid_t) { in dummyTagSocket() argument 49 int dummySetCounterSet(uint32_t, uid_t) { in dummySetCounterSet() argument 53 int dummyDeleteTagData(uint32_t, uid_t) { in dummyDeleteTagData() argument 66 handler.netdTagSocket = (int (*)(int, uint32_t, uid_t))dlsym(netdClientHandle, "tagSocket"); in initHandler() 76 handler.netdSetCounterSet = (int (*)(uint32_t, uid_t))dlsym(netdClientHandle, "setCounterSet"); in initHandler() 81 handler.netdDeleteTagData = (int (*)(uint32_t, uid_t))dlsym(netdClientHandle, "deleteTagData"); in initHandler() 94 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { in qtaguid_tagSocket() [all …]
|
D | multiuser.cpp | 20 userid_t multiuser_get_user_id(uid_t uid) { in multiuser_get_user_id() 24 appid_t multiuser_get_app_id(uid_t uid) { in multiuser_get_app_id() 28 uid_t multiuser_get_uid(userid_t user_id, appid_t app_id) { in multiuser_get_uid() 66 gid_t multiuser_get_shared_app_gid(uid_t uid) { in multiuser_get_shared_app_gid()
|
/system/core/logd/ |
D | LogTags.h | 43 typedef std::unordered_set<uid_t> uid_list; 57 std::unordered_map<uid_t, size_t> uid2count; 58 typedef std::unordered_map<uid_t, size_t>::const_iterator 67 uint32_t nameToTag(uid_t uid, const char* name, const char* format); 81 static std::string formatEntry(uint32_t tag, uid_t uid, const char* name, 84 std::string formatEntry_locked(uint32_t tag, uid_t uid, 89 void AddEventLogTags(uint32_t tag, uid_t uid, const std::string& Name, 93 void WriteDynamicEventLogTags(uint32_t tag, uid_t uid); 94 void WriteDebugEventLogTags(uint32_t tag, uid_t uid); 96 void WritePersistEventLogTags(uint32_t tag, uid_t uid = AID_ROOT, [all …]
|
D | LogWhiteBlackList.h | 32 const uid_t mUid; 34 int cmp(uid_t uid, pid_t pid) const; 37 static const uid_t uid_all = (uid_t)-1; 40 Prune(uid_t uid, pid_t pid); 42 uid_t getUid() const { in getUid()
|
D | LogBuffer.h | 89 typedef std::unordered_map<uid_t, LogBufferElementCollection::iterator> 117 int log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, 129 bool clear(log_id_t id, uid_t uid = AID_ROOT); 134 std::string formatStatistics(uid_t uid, pid_t pid, unsigned int logMask); 147 std::string formatGetEventTag(uid_t uid, const char* name, in formatGetEventTag() 151 std::string formatEntry(uint32_t tag, uid_t uid) { in formatEntry() 162 virtual uid_t pidToUid(pid_t pid) override { in pidToUid() 168 const char* uidToName(uid_t uid) { in uidToName() 190 bool prune(log_id_t id, unsigned long pruneRows, uid_t uid = AID_ROOT);
|
D | LogCommand.cpp | 60 bool clientHasLogCredentials(uid_t uid, gid_t gid, pid_t pid) { in clientHasLogCredentials() 113 uid_t u[4] = { (uid_t)-1, (uid_t)-1, (uid_t)-1, (uid_t)-1 }; in clientHasLogCredentials()
|
/system/core/libprocessgroup/include/processgroup/ |
D | processgroup.h | 28 int killProcessGroup(uid_t uid, int initialPid, int signal); 32 int killProcessGroupOnce(uid_t uid, int initialPid, int signal); 34 int createProcessGroup(uid_t uid, int initialPid); 36 bool setProcessGroupSwappiness(uid_t uid, int initialPid, int swappiness); 37 bool setProcessGroupSoftLimit(uid_t uid, int initialPid, int64_t softLimitInBytes); 38 bool setProcessGroupLimit(uid_t uid, int initialPid, int64_t limitInBytes);
|
/system/core/libcutils/include_vndk/cutils/ |
D | multiuser.h | 26 typedef uid_t userid_t; 27 typedef uid_t appid_t; 29 extern userid_t multiuser_get_user_id(uid_t uid); 30 extern appid_t multiuser_get_app_id(uid_t uid); 32 extern uid_t multiuser_get_uid(userid_t user_id, appid_t app_id); 40 extern gid_t multiuser_get_shared_app_gid(uid_t uid);
|
D | qtaguid.h | 29 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 41 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid); 52 extern int qtaguid_deleteTagData(int tag, uid_t uid);
|
/system/core/libcutils/include/cutils/ |
D | multiuser.h | 26 typedef uid_t userid_t; 27 typedef uid_t appid_t; 29 extern userid_t multiuser_get_user_id(uid_t uid); 30 extern appid_t multiuser_get_app_id(uid_t uid); 32 extern uid_t multiuser_get_uid(userid_t user_id, appid_t app_id); 40 extern gid_t multiuser_get_shared_app_gid(uid_t uid);
|
D | qtaguid.h | 29 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 41 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid); 52 extern int qtaguid_deleteTagData(int tag, uid_t uid);
|
/system/netd/include/ |
D | NetdClient.h | 40 int setNetworkForUser(uid_t uid, int socketFd); 42 int queryUserAccess(uid_t uid, unsigned netId); 44 int tagSocket(int socketFd, uint32_t tag, uid_t uid); 48 int setCounterSet(uint32_t counterSet, uid_t uid); 50 int deleteTagData(uint32_t tag, uid_t uid);
|
/system/core/libqtaguid/include/qtaguid/ |
D | qtaguid.h | 33 extern int legacy_tagSocket(int sockfd, int tag, uid_t uid); 45 extern int legacy_setCounterSet(int counterSetNum, uid_t uid); 56 extern int legacy_deleteTagData(int tag, uid_t uid);
|
/system/core/libprocessgroup/ |
D | processgroup.cpp | 93 static std::string ConvertUidToPath(uid_t uid) { in ConvertUidToPath() 97 static std::string ConvertUidPidToPath(uid_t uid, int pid) { in ConvertUidPidToPath() 101 static int RemoveProcessGroup(uid_t uid, int pid) { in RemoveProcessGroup() 162 static int DoKillProcessGroupOnce(uid_t uid, int initialPid, int signal) { in DoKillProcessGroupOnce() 228 static int KillProcessGroup(uid_t uid, int initialPid, int signal, int retries) { in KillProcessGroup() 274 int killProcessGroup(uid_t uid, int initialPid, int signal) { in killProcessGroup() 278 int killProcessGroupOnce(uid_t uid, int initialPid, int signal) { in killProcessGroupOnce() 282 static bool MkdirAndChown(const std::string& path, mode_t mode, uid_t uid, gid_t gid) { in MkdirAndChown() 297 int createProcessGroup(uid_t uid, int initialPid) in createProcessGroup() 324 static bool SetProcessGroupValue(uid_t uid, int pid, const std::string& file_name, int64_t value) { in SetProcessGroupValue() [all …]
|
/system/core/init/ |
D | descriptors.h | 30 DescriptorInfo(const std::string& name, const std::string& type, uid_t uid, 43 uid_t uid() const { return uid_; } in uid() 51 uid_t uid_; 64 SocketInfo(const std::string& name, const std::string& type, uid_t uid, 74 FileInfo(const std::string& name, const std::string& type, uid_t uid,
|