Home
last modified time | relevance | path

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

12345

/system/security/keystore/
Dkeystore.h48 State getState(uid_t userId) { return getUserState(userId)->getState(); } in getState()
50 ResponseCode initializeUser(const android::String8& pw, uid_t userId);
52 ResponseCode copyMasterKey(uid_t srcUser, uid_t dstUser);
53 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId);
54 ResponseCode readMasterKey(const android::String8& pw, uid_t userId);
57 android::String8 getKeyNameForUid(const android::String8& keyName, uid_t uid,
59 android::String8 getKeyNameForUidWithDir(const android::String8& keyName, uid_t uid,
67 void resetUser(uid_t userId, bool keepUnenryptedEntries);
68 bool isEmpty(uid_t userId) const;
70 void lock(uid_t userId);
[all …]
Dpermissions.cpp37 uid_t uid;
38 uid_t euid;
46 uid_t uid;
62 uid_t uid;
108 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid) { in keystore_selinux_check_access()
141 uid_t get_keystore_euid(uid_t uid) { in get_keystore_euid()
152 bool has_permission(uid_t uid, perm_t perm, pid_t spid) { in has_permission()
172 bool is_granted_to(uid_t callingUid, uid_t targetUid) { in is_granted_to()
Dpermissions.h51 uid_t get_keystore_euid(uid_t uid);
53 bool has_permission(uid_t uid, perm_t perm, pid_t spid);
59 bool is_granted_to(uid_t callingUid, uid_t targetUid);
Dkeystore_utils.h40 uid_t get_app_id(uid_t uid);
46 uid_t get_user_id(uid_t uid);
Dkeystore.cpp63 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser()
68 ResponseCode KeyStore::copyMasterKey(uid_t srcUser, uid_t dstUser) { in copyMasterKey()
74 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey()
79 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey()
129 const android::String8& keyName, uid_t uid, const BlobType type) { in getKeyNameForUid()
140 const android::String8& keyName, uid_t uid, const BlobType type) { in getKeyNameForUidWithDir()
153 void KeyStore::resetUser(uid_t userId, bool keepUnenryptedEntries) { in resetUser()
198 bool KeyStore::isEmpty(uid_t userId) const { in isEmpty()
229 void KeyStore::lock(uid_t userId) { in lock()
235 ResponseCode KeyStore::get(const char* filename, Blob* keyBlob, const BlobType type, uid_t userId) { in get()
[all …]
Dkeystore_utils.cpp83 uid_t get_app_id(uid_t uid) { in get_app_id()
87 uid_t get_user_id(uid_t uid) { in get_user_id()
/system/netd/server/
DNetworkController.h57 uint32_t getNetworkForDns(unsigned* netId, uid_t uid) const;
58 unsigned getNetworkForUser(uid_t uid) const;
59 unsigned getNetworkForConnect(uid_t uid) const;
60 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const;
71 Permission getPermissionForUser(uid_t uid) const;
72 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids);
73 int checkUserNetworkAccess(uid_t uid, unsigned netId) const;
86 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
88 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT;
90 bool canProtect(uid_t uid) const;
[all …]
DVirtualNetwork.h39 bool appliesToUser(uid_t uid) const;
42 const std::set<uid_t>& protectableUsers) WARN_UNUSED_RESULT;
44 const std::set<uid_t>& protectableUsers) WARN_UNUSED_RESULT;
51 const std::set<uid_t>& protectableUsers);
DUidRanges.h31 typedef std::pair<uid_t, uid_t> Range;
36 bool hasUid(uid_t uid) const;
DNetworkController.cpp186 uint32_t NetworkController::getNetworkForDns(unsigned* netId, uid_t uid) const { in getNetworkForDns()
225 unsigned NetworkController::getNetworkForUser(uid_t uid) const { in getNetworkForUser()
247 unsigned NetworkController::getNetworkForConnect(uid_t uid) const { in getNetworkForConnect()
257 unsigned netId, uid_t uid, struct android_net_context* netcontext) const { in getNetworkContext()
424 Permission NetworkController::getPermissionForUser(uid_t uid) const { in getPermissionForUser()
430 const std::vector<uid_t>& uids) { in setPermissionForUsers()
432 for (uid_t uid : uids) { in setPermissionForUsers()
437 int NetworkController::checkUserNetworkAccess(uid_t uid, unsigned netId) const { in checkUserNetworkAccess()
499 const char* nexthop, bool legacy, uid_t uid) { in addRoute()
504 const char* nexthop, bool legacy, uid_t uid) { in removeRoute()
[all …]
DVirtualNetwork.cpp41 bool VirtualNetwork::appliesToUser(uid_t uid) const { in appliesToUser()
47 const std::set<uid_t>& protectableUsers) { in maybeCloseSockets()
66 int VirtualNetwork::addUsers(const UidRanges& uidRanges, const std::set<uid_t>& protectableUsers) { in addUsers()
81 const std::set<uid_t>& protectableUsers) { in removeUsers()
/system/core/include/cutils/
Dmultiuser.h32 typedef uid_t userid_t;
33 typedef uid_t appid_t;
35 extern userid_t multiuser_get_user_id(uid_t uid);
36 extern appid_t multiuser_get_app_id(uid_t uid);
37 extern uid_t multiuser_get_uid(userid_t userId, appid_t appId);
38 extern appid_t multiuser_get_shared_app_gid(uid_t uid);
Dqtaguid.h31 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid);
43 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid);
54 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/logd/
DLogWhiteBlackList.h32 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 { return mUid; } in getUid()
DLogBuffer.h89 typedef std::unordered_map<uid_t,
111 uid_t uid, pid_t pid, pid_t tid,
118 bool clear(log_id_t id, uid_t uid = AID_ROOT);
123 std::string formatStatistics(uid_t uid, pid_t pid, unsigned int logMask);
134 uid_t pidToUid(pid_t pid) { return stats.pidToUid(pid); } in pidToUid()
135 const char *uidToName(uid_t uid) { return stats.uidToName(uid); } in uidToName()
145 bool prune(log_id_t id, unsigned long pruneRows, uid_t uid = AID_ROOT);
DLogCommand.cpp60 bool clientHasLogCredentials(uid_t uid, gid_t gid, pid_t pid) { in clientHasLogCredentials()
114 uid_t u[4] = { (uid_t) -1, (uid_t) -1, (uid_t) -1, (uid_t) -1}; in clientHasLogCredentials()
DLogStatistics.h50 std::unique_ptr<const TEntry *[]> sort(uid_t uid, pid_t pid, in sort()
129 uid_t uid,
226 const uid_t uid;
235 inline const uid_t&getKey() const { return uid; } in getKey()
236 inline const uid_t&getUid() const { return getKey(); } in getUid()
251 uid_t pidToUid(pid_t pid);
256 uid_t uid;
281 const uid_t&getUid() const { return uid; } in getUid()
295 uid_t incomingUid = element->getUid(); in add()
313 uid_t uid;
[all …]
DLogBufferElement.h41 const uid_t mUid;
59 uid_t uid, pid_t pid, pid_t tid,
64 uid_t getUid(void) const { return mUid; } in getUid()
/system/core/libcutils/
Dmultiuser.c19 userid_t multiuser_get_user_id(uid_t uid) { in multiuser_get_user_id()
23 appid_t multiuser_get_app_id(uid_t uid) { in multiuser_get_app_id()
27 uid_t multiuser_get_uid(userid_t userId, appid_t appId) { in multiuser_get_uid()
31 appid_t multiuser_get_shared_app_gid(uid_t id) { in multiuser_get_shared_app_gid()
/system/core/run-as/
Dpackage.h30 uid_t uid;
39 uid_t userId,
42 extern int check_data_path(const char* dataDir, uid_t uid);
/system/nativepower/daemon/
Dwake_lock_manager.h42 uid_t uid) = 0;
48 Request(const std::string& tag, const std::string& package, uid_t uid);
54 uid_t uid;
78 uid_t uid) override;
/system/extras/su/
Dsu.c30 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { in pwtoid()
38 uid_t tmpid = strtoul(tok, &end, 10); in pwtoid()
45 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { in extract_uidgids()
84 uid_t current_uid = getuid(); in main()
102 uid_t uid = 0; in main()
/system/core/libprocessgroup/
Dprocessgroup.cpp87 static int convertUidToPath(char *path, size_t size, uid_t uid) in convertUidToPath()
95 static int convertUidPidToPath(char *path, size_t size, uid_t uid, int pid) in convertUidPidToPath()
105 static int initCtx(uid_t uid, int pid, struct ctx *ctx) in initCtx()
151 static pid_t getOneAppProcess(uid_t uid, int appProcessPid, struct ctx *ctx) in getOneAppProcess()
188 static int removeProcessGroup(uid_t uid, int pid) in removeProcessGroup()
256 static int killProcessGroupOnce(uid_t uid, int initialPid, int signal) in killProcessGroupOnce()
292 int killProcessGroup(uid_t uid, int initialPid, int signal) in killProcessGroup()
321 static int mkdirAndChown(const char *path, mode_t mode, uid_t uid, gid_t gid) in mkdirAndChown()
340 int createProcessGroup(uid_t uid, int initialPid) in createProcessGroup()
/system/core/libprocessgroup/include/processgroup/
Dprocessgroup.h25 int killProcessGroup(uid_t uid, int initialPid, int signal);
27 int createProcessGroup(uid_t uid, int initialPid);

12345