Home
last modified time | relevance | path

Searched refs:uid_t (Results 1 – 25 of 178) sorted by relevance

12345678

/system/netd/server/
DNetworkController.h102 unsigned getNetworkForUser(uid_t uid) const;
103 unsigned getNetworkForConnect(uid_t uid) const;
104 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const;
116 Permission getPermissionForUser(uid_t uid) const;
117 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids);
118 int checkUserNetworkAccess(uid_t uid, unsigned netId) const;
133 const char* nexthop, bool legacy, uid_t uid, int mtu);
135 const char* nexthop, bool legacy, uid_t uid, int mtu);
137 const char* nexthop, bool legacy, uid_t uid);
145 bool canProtect(uid_t uid) const;
[all …]
DTrafficController.h56 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);
90 int changeUidOwnerRule(ChildChain chain, const uid_t uid, FirewallRule rule, FirewallType type);
92 int removeUidOwnerRule(const uid_t uid);
97 netdutils::Status updateOwnerMapEntry(UidOwnerMatchType match, uid_t uid, FirewallRule rule,
118 void setPermissionForUids(int permission, const std::vector<uid_t>& uids) EXCLUDES(mMutex);
238 std::set<uid_t> mPrivilegedUser GUARDED_BY(mMutex);
242 bool hasUpdateDeviceStatsPermission(uid_t uid) REQUIRES(mMutex);
DTrafficControllerTest.cpp52 constexpr uid_t TEST_UID = 10086;
53 constexpr uid_t TEST_UID2 = 54321;
54 constexpr uid_t TEST_UID3 = 98765;
132 int setUpSocketAndTag(int protocol, uint64_t* cookie, uint32_t tag, uid_t uid, in setUpSocketAndTag()
133 uid_t callingUid) { in setUpSocketAndTag()
142 void expectUidTag(uint64_t cookie, uid_t uid, uint32_t tag) { in expectUidTag()
244 void expectUidPermissionMapValues(const std::vector<uid_t>& appUids, uint8_t expectedValue) { in expectUidPermissionMapValues()
245 for (uid_t uid : appUids) { in expectUidPermissionMapValues()
254 void expectPrivilegedUserSet(const std::vector<uid_t>& appUids) { in expectPrivilegedUserSet()
257 for (uid_t uid : appUids) { in expectPrivilegedUserSet()
[all …]
/system/core/libcutils/
Dqtaguid.cpp35 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 …]
Dmultiuser.cpp20 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/logging/logd/
DLogTags.h43 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 …]
DPruneList.h28 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_;
DLogWriter.h26 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_;
DLogPermissions.cpp57 bool clientHasLogCredentials(uid_t uid, gid_t gid, pid_t pid) { in clientHasLogCredentials()
105 uid_t u[4] = { (uid_t)-1, (uid_t)-1, (uid_t)-1, (uid_t)-1 }; in clientHasLogCredentials()
/system/core/libcutils/include/cutils/
Dmultiuser.h26 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);
Dqtaguid.h29 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);
Dfs.h46 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/
Dmultiuser.h26 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);
Dqtaguid.h29 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);
Dfs.h46 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/
Dprocessgroup.h33 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/
Duser_state.h46 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;
Dkeystore_utils.h42 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/netd/include/
DNetdClient.h39 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/
Dqtaguid.h33 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/
DAppFuseUtil.h27 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/
Daudit_log.rs22 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/libprocessgroup/
Dtask_profiles.h51 virtual bool ExecuteForProcess(uid_t, pid_t) const { return false; }; in ExecuteForProcess() argument
63 virtual bool ExecuteForProcess(uid_t uid, pid_t pid) const;
103 virtual bool ExecuteForProcess(uid_t uid, pid_t pid) const;
116 virtual bool ExecuteForProcess(uid_t uid, pid_t pid) const;
149 virtual bool ExecuteForProcess(uid_t uid, pid_t pid) const;
164 bool ExecuteForProcess(uid_t uid, pid_t pid) const;
180 virtual bool ExecuteForProcess(uid_t uid, pid_t pid) const;
197 bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& profiles);
Dprocessgroup.cpp118 bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector<std::string>& profiles) { in SetProcessProfiles()
126 static std::string ConvertUidToPath(const char* cgroup, uid_t uid) { in ConvertUidToPath()
130 static std::string ConvertUidPidToPath(const char* cgroup, uid_t uid, int pid) { in ConvertUidPidToPath()
134 static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid, unsigned int retries) { in RemoveProcessGroup()
226 static bool MkdirAndChown(const std::string& path, mode_t mode, uid_t uid, gid_t gid) { in MkdirAndChown()
273 static int DoKillProcessGroupOnce(const char* cgroup, uid_t uid, int initialPid, int signal) { in DoKillProcessGroupOnce()
343 static int KillProcessGroup(uid_t uid, int initialPid, int signal, int retries, in KillProcessGroup()
411 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroup()
415 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroupOnce()
419 static int createProcessGroupInternal(uid_t uid, int initialPid, std::string cgroup) { in createProcessGroupInternal()
[all …]
/system/extras/su/
Dsu.cpp29 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()

12345678