/system/core/cpio/ |
H A D | mkbootfs.c | 40 int uid, gid, mode; member in struct:fs_config_entry 45 /* Each line in the canned file should be a path plus three ints (uid, 60 // Use the list of file uid/gid/modes loaded from the file 70 s->st_uid = p->uid; 76 s->st_uid = empty_path_config->uid; 303 cc->uid = atoi(strtok(line, " \n")); 306 cc->uid = atoi(strtok(NULL, " \n"));
|
/system/core/debuggerd/ |
H A D | debuggerd.c | 55 uid_t uid, gid; member in struct:__anon21 207 LOG("timed out reading tid (from pid=%d uid=%d)\n", cr.pid, cr.uid); 215 LOG("read failure? %s (pid=%d uid=%d)\n", 216 strerror(errno), cr.pid, cr.uid); 222 LOG("invalid crash request of size %d (from pid=%d uid=%d)\n", 223 status, cr.pid, cr.uid); 230 out_request->uid = cr.uid; 244 } else if (cr.uid [all...] |
/system/core/include/cutils/ |
H A D | fs.h | 44 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid);
|
H A D | multiuser.h | 33 extern userid_t multiuser_get_user_id(uid_t uid); 34 extern appid_t multiuser_get_app_id(uid_t uid);
|
H A D | qtaguid.h | 31 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid); 39 * For the given uid, switch counter sets. 43 extern int qtaguid_setCounterSet(int counterSetNum, uid_t uid); 46 * Delete all tag info that relates to the given tag an uid. 47 * If the tag is 0, then ALL info about the uid is freeded. 54 extern int qtaguid_deleteTagData(int tag, 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);
|
/system/core/include/private/ |
H A D | android_filesystem_config.h | 103 #define AID_USER 100000 /* offset for uid ranges for each user */ 177 unsigned uid; member in struct:fs_path_config 234 /* the following file is INTENTIONALLY set-gid and not set-uid. 238 /* the following five files are INTENTIONALLY set-uid, but they 265 unsigned *uid, unsigned *gid, unsigned *mode, uint64_t *capabilities) 290 *uid = pc->uid; 297 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode); 264 fs_config(const char *path, int dir, unsigned *uid, unsigned *gid, unsigned *mode, uint64_t *capabilities) argument
|
/system/core/init/ |
H A D | builtins.c | 90 static int _chown(const char *path, unsigned int uid, unsigned int gid) argument 100 ret = fchown(fd, uid, gid); 314 uid_t uid = decode_uid(args[3]); local 321 if (_chown(args[1], uid, gid) < 0) {
|
H A D | devices.c | 74 unsigned int uid; member in struct:perms_ 96 mode_t perm, unsigned int uid, unsigned int gid, 113 node->dp.uid = uid; 149 INFO("fixup %s %d %d 0%o\n", buf, dp->uid, dp->gid, dp->perm); 150 chown(buf, dp->uid, dp->gid); 163 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid) argument 184 *uid = dp->uid; 189 *uid 95 add_dev_perms(const char *name, const char *attr, mode_t perm, unsigned int uid, unsigned int gid, unsigned short prefix) argument 198 unsigned uid; local [all...] |
H A D | devices.h | 25 mode_t perm, unsigned int uid,
|
H A D | init.c | 260 si->perm, si->uid, si->gid); 295 /* as requested, set our gid, supplemental gids, and uid */ 308 if (svc->uid) { 309 if (setuid(svc->uid) != 0) {
|
H A D | init.h | 55 uid_t uid; member in struct:socketinfo 94 uid_t uid; member in struct:service
|
H A D | init_parser.c | 774 case K_socket: {/* name type perm [ uid gid ] */ 794 si->uid = decode_uid(args[4]); 805 svc->uid = decode_uid(args[1]);
|
H A D | property_service.c | 62 unsigned int uid; member in struct:__anon141 106 unsigned int uid; member in struct:__anon142 198 * Returns 1 if uid allowed, 0 otherwise. 200 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) { argument 203 if (uid == AID_SYSTEM || uid == AID_ROOT) 209 if ((uid && control_perms[i].uid == uid) || 220 * Returns 1 if uid allowe 222 check_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) argument [all...] |
H A D | ueventd.c | 116 uid_t uid; local 166 ERROR("invalid uid '%s'\n", args[2]); 170 uid = ret; 180 add_dev_perms(name, attr, perm, uid, gid, prefix);
|
H A D | util.c | 44 * android_name_to_id - returns the integer uid/gid associated with the given 62 * numeric or name representation, into the integer uid or gid. Returns -1U on 87 int create_socket(const char *name, int type, mode_t perm, uid_t uid, gid_t gid) argument 126 chown(addr.sun_path, uid, gid); 130 addr.sun_path, perm, uid, gid);
|
H A D | util.h | 29 uid_t uid, gid_t gid);
|
/system/core/libcutils/ |
H A D | fs.c | 40 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument 57 if (((sb.st_mode & ALL_PERMS) == mode) && (sb.st_uid == uid) && (sb.st_gid == gid)) { 76 if (TEMP_FAILURE_RETRY(chown(path, uid, gid)) == -1) { 77 ALOGE("Failed to chown(%s, %d, %d): %s", path, uid, gid, strerror(errno));
|
H A D | multiuser.c | 19 userid_t multiuser_get_user_id(uid_t uid) { argument 20 return uid / MULTIUSER_APP_PER_USER_RANGE; 23 appid_t multiuser_get_app_id(uid_t uid) { argument 24 return uid % MULTIUSER_APP_PER_USER_RANGE;
|
H A D | qtaguid.c | 99 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { argument 106 snprintf(lineBuf, sizeof(lineBuf), "t %d %llu %d", sockfd, kTag, uid); 108 ALOGV("Tagging socket %d with tag %llx{%u,0} for uid %d", sockfd, kTag, tag, uid); 112 ALOGI("Tagging socket %d with tag %llx(%d) for uid %d failed errno=%d", 113 sockfd, kTag, tag, uid, res); 134 int qtaguid_setCounterSet(int counterSetNum, uid_t uid) { argument 138 ALOGV("Setting counters to set %d for uid %d", counterSetNum, uid); 140 snprintf(lineBuf, sizeof(lineBuf), "s %d %d", counterSetNum, uid); 145 qtaguid_deleteTagData(int tag, uid_t uid) argument [all...] |
H A D | sockets.c | 37 if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) { 38 ALOGE("untrusted userid on other end of socket: userid %d\n", cr.uid);
|
H A D | uevent.c | 40 * fails due to a bad uid check, the uid_t will be set to the uid of the 76 *user = cred->uid; 77 if (cred->uid != 0) {
|
/system/core/libsysutils/src/ |
H A D | NetlinkListener.cpp | 48 uid_t uid = -1; local 51 socket, mBuffer, sizeof(mBuffer), &uid)); 53 if (uid > 0) 54 LOG_EVENT_INT(65537, uid);
|
H A D | SocketClient.cpp | 41 mUid = creds.uid;
|
/system/core/run-as/ |
H A D | package.c | 29 * the run-as command has dropped the uid/gid. Hence be very 160 * - is owned by a given uid/gid 168 check_directory_ownership(const char* path, uid_t uid) argument 184 /* must be owned by specific uid/gid */ 185 if (st.st_uid != uid || st.st_gid != uid) 208 check_data_path(const char* dataPath, uid_t uid) argument 259 * directory is owned by the application uid 261 if (check_directory_ownership(dataPath, uid) < 0) 432 info->uid 463 int uid, debugFlag; local [all...] |