/system/core/include/cutils/ |
H A D | qtaguid.h | 33 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 41 * For the given uid, switch counter sets. 45 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid); 48 * Delete all tag info that relates to the given tag an uid. 49 * If the tag is 0, then ALL info about the uid is freeded. 56 extern int qtaguid_deleteTagData(int tag, uid_t uid);
|
H A 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);
|
H A D | multiuser.h | 29 extern userid_t multiuser_get_user_id(uid_t uid); 30 extern appid_t multiuser_get_app_id(uid_t uid); 40 extern gid_t multiuser_get_shared_app_gid(uid_t uid);
|
H A D | uevent.h | 29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid); 30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
|
/system/core/libcutils/include/cutils/ |
H A D | qtaguid.h | 33 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 41 * For the given uid, switch counter sets. 45 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid); 48 * Delete all tag info that relates to the given tag an uid. 49 * If the tag is 0, then ALL info about the uid is freeded. 56 extern int qtaguid_deleteTagData(int tag, uid_t uid);
|
H A 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);
|
H A D | multiuser.h | 29 extern userid_t multiuser_get_user_id(uid_t uid); 30 extern appid_t multiuser_get_app_id(uid_t uid); 40 extern gid_t multiuser_get_shared_app_gid(uid_t uid);
|
H A D | uevent.h | 29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid); 30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
|
/system/core/libcutils/include_vndk/cutils/ |
H A D | qtaguid.h | 33 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 41 * For the given uid, switch counter sets. 45 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid); 48 * Delete all tag info that relates to the given tag an uid. 49 * If the tag is 0, then ALL info about the uid is freeded. 56 extern int qtaguid_deleteTagData(int tag, uid_t uid);
|
H A 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);
|
H A D | multiuser.h | 29 extern userid_t multiuser_get_user_id(uid_t uid); 30 extern appid_t multiuser_get_app_id(uid_t uid); 40 extern gid_t multiuser_get_shared_app_gid(uid_t uid);
|
H A D | uevent.h | 29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid); 30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
|
/system/core/libprocessgroup/include/processgroup/ |
H A D | processgroup.h | 25 int killProcessGroup(uid_t uid, int initialPid, int signal); 27 int killProcessGroupOnce(uid_t uid, int initialPid, int signal); 29 int createProcessGroup(uid_t uid, int initialPid);
|
/system/security/keystore/ |
H A D | permissions.cpp | 53 uid_t uid; member in struct:user_euid 63 uid_t uid; member in struct:user_perm 80 uid_t uid; member in struct:audit_data 100 snprintf(buf, len, "pid=%d uid=%d", ad->pid, ad->uid); 120 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid) { argument 136 ad.uid = uid; 149 uid_t get_keystore_euid(uid_t uid) { argument 152 if (user.uid 160 has_permission(uid_t uid, perm_t perm, pid_t spid) argument [all...] |
/system/netd/server/ |
H A D | NetworkController.h | 42 * Keeps track of default, per-pid, and per-uid-range network selection, as 62 uint32_t getNetworkForDns(unsigned* netId, uid_t uid) const; 63 unsigned getNetworkForUser(uid_t uid) const; 64 unsigned getNetworkForConnect(uid_t uid) const; 65 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const; 76 Permission getPermissionForUser(uid_t uid) const; 78 int checkUserNetworkAccess(uid_t uid, unsigned netId) const; 91 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT; 93 const char* nexthop, bool legacy, uid_t uid) WARN_UNUSED_RESULT; 95 bool canProtect(uid_t uid) cons [all...] |
/system/core/libcutils/ |
H A D | multiuser.c | 20 userid_t multiuser_get_user_id(uid_t uid) { argument 21 return uid / AID_USER_OFFSET; 24 appid_t multiuser_get_app_id(uid_t uid) { argument 25 return uid % AID_USER_OFFSET; 64 gid_t multiuser_get_shared_app_gid(uid_t uid) { argument 65 return multiuser_get_shared_gid(multiuser_get_user_id(uid), multiuser_get_app_id(uid));
|
H A D | uevent.c | 34 uid_t uid = -1; local 35 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &uid); 40 * fails due to a bad uid check, the uid_t will be set to the uid of the 47 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid) argument 49 return uevent_kernel_recv(socket, buffer, length, true, uid); 52 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid) argument 67 *uid = -1; 80 *uid = cred->uid; [all...] |
H A D | qtaguid.c | 98 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { argument 105 snprintf(lineBuf, sizeof(lineBuf), "t %d %" PRIu64 " %d", sockfd, kTag, uid); 107 ALOGV("Tagging socket %d with tag %" PRIx64 "{%u,0} for uid %d", sockfd, kTag, tag, uid); 111 ALOGI("Tagging socket %d with tag %" PRIx64 "(%d) for uid %d failed errno=%d", 112 sockfd, kTag, tag, uid, res); 133 int qtaguid_setCounterSet(int counterSetNum, uid_t uid) { argument 137 ALOGV("Setting counters to set %d for uid %d", counterSetNum, uid); 139 snprintf(lineBuf, sizeof(lineBuf), "s %d %d", counterSetNum, uid); 144 qtaguid_deleteTagData(int tag, uid_t uid) argument [all...] |
/system/extras/su/ |
H A D | su.cpp | 30 void pwtoid(const char* tok, uid_t* uid, gid_t* gid) { argument 33 if (uid) *uid = pw->pw_uid; 39 if (errno != 0 || end == tok) error(1, errno, "invalid uid/gid '%s'", tok); 40 if (uid) *uid = tmpid; 45 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { argument 52 *gid = *uid = 0; 61 pwtoid(tok, uid, gid); 102 uid_t uid local [all...] |
/system/core/include/private/ |
H A D | canned_fs_config.h | 23 void canned_fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid,
|
/system/core/libcutils/include/private/ |
H A D | canned_fs_config.h | 23 void canned_fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid,
|
H A D | fs_config.h | 31 uint16_t uid; member in struct:fs_path_config_from_file
|
/system/core/libcutils/include_vndk/private/ |
H A D | canned_fs_config.h | 23 void canned_fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid,
|
H A D | fs_config.h | 31 uint16_t uid; member in struct:fs_path_config_from_file
|
/system/netd/server/binder/android/net/metrics/ |
H A D | INetdEventListener.aidl | 47 * @param uid the UID of the application that performed the query. 50 in String[] ipAddresses, int ipAddressesCount, int uid); 60 * @param uid the UID of the application that performed the connection. 62 void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, int port, int uid);
|