/system/netd/server/ |
D | NetworkController.h | 101 unsigned getNetworkForUser(uid_t uid) const; 102 unsigned getNetworkForConnect(uid_t uid) const; 103 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const; 117 Permission getPermissionForUser(uid_t uid) const; 118 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids); 119 int checkUserNetworkAccess(uid_t uid, unsigned netId) const; 134 const char* nexthop, bool legacy, uid_t uid, int mtu); 136 const char* nexthop, bool legacy, uid_t uid, int mtu); 138 const char* nexthop, bool legacy, uid_t uid); 146 bool canProtect(uid_t uid) const; [all …]
|
D | NetworkController.cpp | 210 uint32_t NetworkController::getNetworkForDnsLocked(unsigned* netId, uid_t uid) const { in getNetworkForDnsLocked() 264 unsigned NetworkController::getNetworkForUser(uid_t uid) const { in getNetworkForUser() 297 unsigned NetworkController::getNetworkForConnectLocked(uid_t uid) const { in getNetworkForConnectLocked() 308 unsigned NetworkController::getNetworkForConnect(uid_t uid) const { in getNetworkForConnect() 314 unsigned netId, uid_t uid, struct android_net_context* netcontext) const { in getNetworkContext() 581 Permission NetworkController::getPermissionForUser(uid_t uid) const { in getPermissionForUser() 587 const std::vector<uid_t>& uids) { in setPermissionForUsers() 589 for (uid_t uid : uids) { in setPermissionForUsers() 594 int NetworkController::checkUserNetworkAccess(uid_t uid, unsigned netId) const { in checkUserNetworkAccess() 658 const char* nexthop, bool legacy, uid_t uid, int mtu) { in addRoute() [all …]
|
/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); 33 extern uid_t multiuser_get_sdk_sandbox_uid(userid_t user_id, appid_t app_id); 34 extern uid_t multiuser_convert_sdk_sandbox_to_app_uid(uid_t uid); 42 extern gid_t multiuser_get_shared_app_gid(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/libcutils/include_outside_system/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); 33 extern uid_t multiuser_get_sdk_sandbox_uid(userid_t user_id, appid_t app_id); 34 extern uid_t multiuser_convert_sdk_sandbox_to_app_uid(uid_t uid); 42 extern gid_t multiuser_get_shared_app_gid(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 | 38 bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& profiles); 39 bool SetUserProfiles(uid_t uid, const std::vector<std::string>& profiles); 45 bool SetProcessProfiles(uid_t uid, pid_t pid, std::initializer_list<std::string_view> profiles); 49 bool SetProcessProfiles(uid_t uid, pid_t pid, std::span<const std::string_view> profiles); 56 bool SetProcessProfilesCached(uid_t uid, pid_t pid, const std::vector<std::string>& profiles); 73 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes = nullptr); 77 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes = nullptr); 82 int sendSignalToProcessGroup(uid_t uid, int initialPid, int signal); 84 int createProcessGroup(uid_t uid, int initialPid, bool memControl = false); 88 bool setProcessGroupSwappiness(uid_t uid, int initialPid, int swappiness); [all …]
|
/system/logging/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 | 57 static bool checkSupplementaryGroup(uid_t uid, gid_t gid, pid_t pid, gid_t gidToCheck) { in checkSupplementaryGroup() 99 uid_t u[4] = { (uid_t)-1, (uid_t)-1, (uid_t)-1, (uid_t)-1 }; in checkSupplementaryGroup() 129 bool clientCanWriteSecurityLog(uid_t uid, gid_t gid, pid_t pid) { in clientCanWriteSecurityLog() 137 bool clientHasLogCredentials(uid_t uid, gid_t gid, pid_t pid) { 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() 40 uid_t uid_;
|
D | LogStatistics.h | 51 uid_t uid; 100 void MaxEntries(uid_t uid, pid_t pid, std::array<const TKey*, len>& out_keys, in MaxEntries() 105 uid_t entry_uid = 0; in MaxEntries() 242 std::string format(const LogStatistics& stat, log_id_t id, uid_t uid) const; 249 uid_t pidToUid(pid_t pid); 264 uid_t uid() const { return uid_; } in uid() 278 uid_t incoming_uid = element.uid; in Add() 293 uid_t uid_; 314 uid_t uid() const { return uid_; } in uid() 328 uid_t incoming_uid = element.uid; in Add() [all …]
|
/system/core/libprocessgroup/ |
D | task_profiles.h | 39 virtual bool GetPathForProcess(uid_t uid, pid_t pid, std::string* path) const = 0; 41 virtual bool GetPathForUID(uid_t uid, std::string* path) const = 0; 59 bool GetPathForProcess(uid_t uid, pid_t pid, std::string* path) const override; 61 bool GetPathForUID(uid_t uid, std::string* path) const override; 79 virtual bool ExecuteForProcess(uid_t, pid_t) const { return false; } in ExecuteForProcess() argument 81 virtual bool ExecuteForUID(uid_t) const { return false; } in ExecuteForUID() argument 85 virtual bool IsValidForProcess(uid_t uid, pid_t pid) const { return false; } in IsValidForProcess() 98 bool ExecuteForProcess(uid_t uid, pid_t pid) const override; 112 bool IsValidForProcess(uid_t uid, pid_t pid) const override { return true; } in IsValidForProcess() 128 bool ExecuteForProcess(uid_t uid, pid_t pid) const override; [all …]
|
D | processgroup.cpp | 155 bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& profiles) { in SetProcessProfiles() 160 bool SetProcessProfiles(uid_t uid, pid_t pid, std::initializer_list<std::string_view> profiles) { in SetProcessProfiles() 165 bool SetProcessProfiles(uid_t uid, pid_t pid, std::span<const std::string_view> profiles) { in SetProcessProfiles() 169 bool SetProcessProfilesCached(uid_t uid, pid_t pid, const std::vector<std::string>& profiles) { in SetProcessProfilesCached() 193 extern "C" bool android_set_process_profiles(uid_t uid, pid_t pid, size_t num_profiles, in android_set_process_profiles() 203 bool SetUserProfiles(uid_t uid, const std::vector<std::string>& profiles) { in SetUserProfiles() 208 static std::string ConvertUidToPath(const char* cgroup, uid_t uid) { in ConvertUidToPath() 212 static std::string ConvertUidPidToPath(const char* cgroup, uid_t uid, int pid) { in ConvertUidPidToPath() 216 static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid, unsigned int retries) { in RemoveProcessGroup() 327 static bool MkdirAndChown(const std::string& path, mode_t mode, uid_t uid, gid_t gid) { in MkdirAndChown() [all …]
|
/system/security/keystore/ |
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 | 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);
|
/system/core/libcutils/ |
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() 32 uid_t multiuser_get_sdk_sandbox_uid(userid_t user_id, appid_t app_id) { in multiuser_get_sdk_sandbox_uid() 41 uid_t multiuser_convert_sdk_sandbox_to_app_uid(uid_t uid) { in multiuser_convert_sdk_sandbox_to_app_uid() 85 gid_t multiuser_get_shared_app_gid(uid_t uid) { in multiuser_get_shared_app_gid()
|
D | qtaguid.cpp | 30 int (*netdTagSocket)(int, uint32_t, uid_t); 34 static int stubTagSocket(int, uint32_t, uid_t) { in stubTagSocket() argument 52 handler.netdTagSocket = (int (*)(int, uint32_t, uid_t))dlsym(netdClientHandle, "tagSocket"); in initHandler() 73 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { in qtaguid_tagSocket()
|
/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);
|
/system/security/keystore2/src/ |
D | audit_log.rs | 22 use libc::uid_t; 45 pub fn log_key_generated(key: &KeyDescriptor, calling_app: uid_t, success: bool) { in log_key_generated() argument 50 pub fn log_key_imported(key: &KeyDescriptor, calling_app: uid_t, success: bool) { in log_key_imported() argument 55 pub fn log_key_deleted(key: &KeyDescriptor, calling_app: uid_t, success: bool) { in log_key_deleted() argument 67 fn log_key_event(tag: u32, key: &KeyDescriptor, calling_app: uid_t, success: bool) { in log_key_event() argument
|
/system/core/init/ |
D | firmware_handler.h | 34 ExternalFirmwareHandler(std::string devpath, uid_t uid, std::string handler_path); 35 ExternalFirmwareHandler(std::string devpath, uid_t uid, gid_t gid, std::string handler_path); 38 uid_t uid; 57 Result<std::string> RunExternalHandler(const std::string& handler, uid_t uid, gid_t gid,
|
/system/extras/su/ |
D | su.cpp | 29 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { in pwtoid() 37 uid_t tmpid = strtoul(tok, &end, 10); in pwtoid() 44 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { in extract_uidgids() 83 uid_t current_uid = getuid(); in main() 101 uid_t uid = 0; in main()
|
/system/core/run-as/ |
D | run-as.cpp | 73 static void check_directory(const char* path, uid_t uid) { in check_directory() 102 static void check_data_path(const char* package_name, const char* data_path, uid_t uid) { in check_data_path() 145 std::vector<gid_t> get_supplementary_gids(uid_t userAppId) { in get_supplementary_gids() 217 if ((UID_MAX - info.uid) / AID_USER_OFFSET < (uid_t)userId) { in main() 222 uid_t userAppId = (AID_USER_OFFSET * userId) + info.uid; in main() 239 uid_t uid = userAppId; in main() 240 uid_t gid = userAppId; in main()
|
/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);
|
/system/netd/tests/ |
D | test_utils.h | 47 explicit ScopedUidChange(uid_t uid) : mInputUid(uid) { in ScopedUidChange() 58 uid_t mInputUid; 59 uid_t mStoredUid;
|