/system/core/libprocessgroup/include/processgroup/ |
H A D | processgroup.h | 28 int killProcessGroup(uid_t uid, int initialPid, int signal); 32 int killProcessGroupOnce(uid_t uid, int initialPid, int signal); 34 int createProcessGroup(uid_t uid, int initialPid); 36 bool setProcessGroupSwappiness(uid_t uid, int initialPid, int swappiness); 37 bool setProcessGroupSoftLimit(uid_t uid, int initialPid, int64_t softLimitInBytes); 38 bool setProcessGroupLimit(uid_t uid, int initialPid, int64_t limitInBytes);
|
/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/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); 72 void onWakeupEvent(String prefix, int uid, int gid, long timestampNs);
|
/system/core/include/log/ |
H A D | log_safetynet.h | 32 #define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \ 33 __android_log_error_write(tag, subTag, uid, data, dataLen) 35 int __android_log_error_write(int tag, const char* subTag, int32_t uid,
|
/system/core/liblog/include/log/ |
H A D | log_safetynet.h | 32 #define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \ 33 __android_log_error_write(tag, subTag, uid, data, dataLen) 35 int __android_log_error_write(int tag, const char* subTag, int32_t uid,
|
/system/core/liblog/include_vndk/log/ |
H A D | log_safetynet.h | 32 #define android_errorWriteWithInfoLog(tag, subTag, uid, data, dataLen) \ 33 __android_log_error_write(tag, subTag, uid, data, dataLen) 35 int __android_log_error_write(int tag, const char* subTag, int32_t uid,
|
/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/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/core/libcutils/include/private/ |
H A D | fs_config.h | 45 uint16_t uid; member in struct:fs_path_config_from_file 53 unsigned uid; member in struct:fs_path_config 73 void fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid, unsigned* gid,
|
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/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,
|