/system/netd/server/ |
D | NetworkController.h | 99 unsigned getNetworkForUser(uid_t uid) const; 100 unsigned getNetworkForConnect(uid_t uid) const; 101 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const; 113 Permission getPermissionForUser(uid_t uid) const; 114 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids); 115 int checkUserNetworkAccess(uid_t uid, unsigned netId) const; 128 const char* nexthop, bool legacy, uid_t uid, int mtu); 130 const char* nexthop, bool legacy, uid_t uid, int mtu); 132 const char* nexthop, bool legacy, uid_t uid); 140 bool canProtect(uid_t uid) const; [all …]
|
D | TrafficController.h | 56 int tagSocket(int sockFd, uint32_t tag, uid_t uid, uid_t callingUid) EXCLUDES(mMutex); 68 int setCounterSet(int counterSetNum, uid_t uid, uid_t callingUid) EXCLUDES(mMutex); 78 int deleteTagData(uint32_t tag, uid_t uid, uid_t callingUid) EXCLUDES(mMutex); 96 int changeUidOwnerRule(ChildChain chain, const uid_t uid, FirewallRule rule, FirewallType type); 98 int removeUidOwnerRule(const uid_t uid); 103 netdutils::Status updateOwnerMapEntry(UidOwnerMatchType match, uid_t uid, FirewallRule rule, 124 void setPermissionForUids(int permission, const std::vector<uid_t>& uids) EXCLUDES(mMutex); 246 std::set<uid_t> mPrivilegedUser GUARDED_BY(mMutex); 250 bool hasUpdateDeviceStatsPermission(uid_t uid) REQUIRES(mMutex);
|
D | VirtualNetwork.h | 39 bool appliesToUser(uid_t uid) const; 41 [[nodiscard]] int addUsers(const UidRanges& uidRanges, const std::set<uid_t>& protectableUsers); 43 const std::set<uid_t>& protectableUsers); 50 const std::set<uid_t>& protectableUsers);
|
/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 stubTagSocket(int, uint32_t, uid_t) { in stubTagSocket() argument 49 int stubSetCounterSet(uint32_t, uid_t) { in stubSetCounterSet() argument 53 int stubDeleteTagData(uint32_t, uid_t) { in stubDeleteTagData() 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 | PruneList.h | 28 static const uid_t UID_ALL = (uid_t)-1; 31 Prune(uid_t uid, pid_t pid) : uid_(uid), pid_(pid) {} in Prune() 36 uid_t uid() const { return uid_; } in uid() 40 const uid_t uid_;
|
D | LogPermissions.cpp | 56 bool clientHasLogCredentials(uid_t uid, gid_t gid, pid_t pid) { in clientHasLogCredentials() 109 uid_t u[4] = { (uid_t)-1, (uid_t)-1, (uid_t)-1, (uid_t)-1 }; in clientHasLogCredentials()
|
D | LogWriter.h | 26 LogWriter(uid_t uid, bool privileged) : uid_(uid), privileged_(privileged) {} in LogWriter() 34 uid_t uid() const { return uid_; } in uid() 39 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/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);
|
D | fs.h | 46 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid); 52 extern int fs_prepare_dir_strict(const char* path, mode_t mode, uid_t uid, gid_t gid); 58 extern int fs_prepare_file_strict(const char* path, mode_t mode, uid_t uid, gid_t gid);
|
/system/core/libprocessgroup/include/processgroup/ |
D | processgroup.h | 33 bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& profiles); 52 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes = nullptr); 56 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes = nullptr); 58 int createProcessGroup(uid_t uid, int initialPid, bool memControl = false); 62 bool setProcessGroupSwappiness(uid_t uid, int initialPid, int swappiness); 63 bool setProcessGroupSoftLimit(uid_t uid, int initialPid, int64_t softLimitInBytes); 64 bool setProcessGroupLimit(uid_t uid, int initialPid, int64_t limitInBytes);
|
/system/security/keystore/ |
D | KeyStore.h | 102 State getState(uid_t userId) { return mUserStateDB.getUserState(userId)->getState(); } 104 ResponseCode initializeUser(const android::String8& pw, uid_t userId); 106 ResponseCode copyMasterKey(uid_t srcUser, uid_t dstUser); 107 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId); 108 ResponseCode readMasterKey(const android::String8& pw, uid_t userId); 110 LockedKeyBlobEntry getLockedBlobEntryIfNotExists(const std::string& alias, uid_t uid); 111 std::optional<KeyBlobEntry> getBlobEntryIfExists(const std::string& alias, uid_t uid); 112 LockedKeyBlobEntry getLockedBlobEntryIfExists(const std::string& alias, uid_t uid); 118 void resetUser(uid_t userId, bool keepUnenryptedEntries); 119 bool isEmpty(uid_t userId) const; [all …]
|
D | permissions.h | 52 uid_t get_keystore_euid(uid_t uid); 59 bool has_permission(uid_t uid, perm_t perm, pid_t spid, const char* sid); 65 bool is_granted_to(uid_t callingUid, uid_t targetUid);
|
D | user_state.h | 46 explicit UserState(uid_t userId); 50 uid_t getUserId() const { return mUserId; } in getUserId() 73 bool operator<(uid_t userId) const; 92 uid_t mUserId; 99 bool operator<(uid_t userId, const UserState& rhs); 103 LockedUserState<UserState> getUserState(uid_t userId); 104 LockedUserState<UserState> getUserStateByUid(uid_t uid); 105 LockedUserState<const UserState> getUserState(uid_t userId) const; 106 LockedUserState<const UserState> getUserStateByUid(uid_t uid) const; 126 std::map<uid_t, UserState> mMasterKeys;
|
D | grant_store.h | 67 std::string put(const uid_t uid, const LockedKeyBlobEntry& blobfile); 68 ReadLockedGrant get(const uid_t uid, const std::string& alias) const; 69 bool removeByFileAlias(const uid_t granteeUid, const LockedKeyBlobEntry& lockedEntry); 70 void removeAllGrantsToKey(const uid_t granterUid, const std::string& alias); 71 void removeAllGrantsToUid(const uid_t granteeUid); 77 std::unordered_map<uid_t, std::set<Grant, std::less<>>> grants_;
|
D | permissions.cpp | 53 uid_t uid; 54 uid_t euid; 68 uid_t uid; 92 uid_t uid; 134 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid, const char* ssid) { in keystore_selinux_check_access() 166 uid_t get_keystore_euid(uid_t uid) { in get_keystore_euid() 177 bool has_permission(uid_t uid, perm_t perm, pid_t spid, const char* sid) { in has_permission() 201 bool is_granted_to(uid_t callingUid, uid_t targetUid) { in is_granted_to()
|
D | keystore_utils.h | 42 uid_t get_app_id(uid_t uid); 48 uid_t get_user_id(uid_t uid); 59 void log_key_integrity_violation(const char* name, uid_t uid);
|
D | KeyStore.cpp | 81 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() 86 ResponseCode KeyStore::copyMasterKey(uid_t srcUser, uid_t dstUser) { in copyMasterKey() 92 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() 97 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() 102 LockedKeyBlobEntry KeyStore::getLockedBlobEntryIfNotExists(const std::string& alias, uid_t uid) { in getLockedBlobEntryIfNotExists() 109 std::optional<KeyBlobEntry> KeyStore::getBlobEntryIfExists(const std::string& alias, uid_t uid) { in getBlobEntryIfExists() 114 uid_t euid = get_keystore_euid(uid); in getBlobEntryIfExists() 128 LockedKeyBlobEntry KeyStore::getLockedBlobEntryIfExists(const std::string& alias, uid_t uid) { in getLockedBlobEntryIfExists() 136 void KeyStore::resetUser(uid_t userId, bool keepUnenryptedEntries) { in resetUser() 208 bool KeyStore::isEmpty(uid_t userId) const { in isEmpty() [all …]
|
/system/netd/include/ |
D | NetdClient.h | 39 int setNetworkForUser(uid_t uid, int socketFd); 41 int queryUserAccess(uid_t uid, unsigned netId); 45 int tagSocket(int socketFd, uint32_t tag, uid_t uid); 49 int setCounterSet(uint32_t counterSet, uid_t uid); 51 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/vold/ |
D | AppFuseUtil.h | 27 int MountAppFuse(uid_t uid, int mountId, android::base::unique_fd* device_fd); 29 int UnmountAppFuse(uid_t uid, int mountId); 31 int OpenAppFuseFile(uid_t uid, int mountId, int fileId, int flags);
|