Searched refs:uid (Results 1 - 25 of 46) sorted by last modified time

12

/system/security/keystore/
H A Dkeystore.cpp180 static int encode_key_for_uid(char* out, uid_t uid, const Value* key) { argument
181 int n = snprintf(out, NAME_MAX, "%u_", uid);
441 uint32_t uid; member in struct:__anon570
616 uid_t uid; local
617 if (!convertToUid(uidValue, &uid)) {
621 grant_t *grant = getGrant(filename, uid);
624 grant->uid = uid;
631 uid_t uid; local
632 if (!convertToUid(uidValue, &uid)) {
895 get_key_for_name(KeyStore* keyStore, Blob* keyBlob, const Value* keyName, const uid_t uid, const BlobType type) argument
939 get(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value*, Value*) argument
952 insert(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value* val, Value*) argument
960 del(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value*, Value*) argument
971 exist(KeyStore*, int, uid_t uid, Value* keyName, Value*, Value*) argument
980 saw(KeyStore*, int sock, uid_t uid, Value* keyPrefix, Value*, Value*) argument
1052 unlock(KeyStore* keyStore, int sock, uid_t uid, Value* pw, Value* unused, Value* unused2) argument
1061 generate(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value*, Value*) argument
1094 import(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value* key, Value*) argument
1114 get_pubkey(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value*, Value*) argument
1149 del_key(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value*, Value*) argument
1180 sign(KeyStore* keyStore, int sock, uid_t uid, Value* keyName, Value* data, Value*) argument
1221 verify(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value* data, Value* signature) argument
1253 grant(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value* granteeData, Value*) argument
1265 ungrant(KeyStore* keyStore, int, uid_t uid, Value* keyName, Value* granteeData, Value*) argument
1276 getmtime(KeyStore*, int sock, uid_t uid, Value* keyName, Value*, Value*) argument
1363 uid_t uid; member in struct:user
1375 process(KeyStore* keyStore, int sock, uid_t uid, int8_t code) argument
[all...]
/system/core/cpio/
H A Dmkbootfs.c40 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,
59 // Use the list of file uid/gid/modes loaded from the file
69 s->st_uid = p->uid;
75 s->st_uid = empty_path_config->uid;
302 cc->uid = atoi(strtok(line, " \n"));
305 cc->uid = atoi(strtok(NULL, " \n"));
/system/core/debuggerd/
H A Ddebuggerd.c54 uid_t uid, gid; member in struct:__anon288
223 out_request->uid = cr.uid;
236 } else if (cr.uid == 0
237 || (cr.uid == AID_SYSTEM && msg.action == DEBUGGER_ACTION_DUMP_BACKTRACE)) {
241 &out_request->uid, &out_request->gid);
257 property_get("debug.db.uid", value, "-1");
259 return debug_uid >= 0 && request->uid <= (uid_t)debug_uid;
270 XLOG("BOOM: pid=%d uid=%d gid=%d tid=%d\n",
271 request.pid, request.uid, reques
[all...]
/system/core/include/cutils/
H A Dfs.h44 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid);
H A Dmultiuser.h33 extern userid_t multiuser_get_user_id(uid_t uid);
34 extern appid_t multiuser_get_app_id(uid_t uid);
H A Dqtaguid.h31 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 Duevent.h29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
/system/core/include/private/
H A Dandroid_filesystem_config.h89 #define AID_USER 100000 /* offset for uid ranges for each user */
149 unsigned uid; member in struct:fs_path_config
203 /* the following two files are INTENTIONALLY set-gid and not set-uid.
207 /* the following five files are INTENTIONALLY set-uid, but they
215 /* the following file is INTENTIONALLY set-uid, and IS included
232 unsigned *uid, unsigned *gid, unsigned *mode)
253 *uid = pc->uid;
259 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode);
231 fs_config(const char *path, int dir, unsigned *uid, unsigned *gid, unsigned *mode) argument
/system/core/init/
H A Dbuiltins.c91 static int _chown(const char *path, unsigned int uid, unsigned int gid) argument
101 ret = fchown(fd, uid, gid);
315 uid_t uid = decode_uid(args[3]); local
322 if (_chown(args[1], uid, gid) < 0) {
H A Ddevices.c78 unsigned int uid; member in struct:perms_
99 mode_t perm, unsigned int uid, unsigned int gid,
116 node->dp.uid = uid;
151 INFO("fixup %s %d %d 0%o\n", buf, dp->uid, dp->gid, dp->perm);
152 chown(buf, dp->uid, dp->gid);
157 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid) argument
178 *uid = dp->uid;
183 *uid
98 add_dev_perms(const char *name, const char *attr, mode_t perm, unsigned int uid, unsigned int gid, unsigned short prefix) argument
192 unsigned uid; local
[all...]
H A Ddevices.h25 mode_t perm, unsigned int uid,
H A Dinit.c279 si->perm, si->uid, si->gid);
316 /* as requested, set our gid, supplemental gids, and uid */
329 if (svc->uid) {
330 if (setuid(svc->uid) != 0) {
H A Dinit.h55 uid_t uid; member in struct:socketinfo
93 uid_t uid; member in struct:service
H A Dinit_parser.c767 case K_socket: {/* name type perm [ uid gid ] */
787 si->uid = decode_uid(args[4]);
798 svc->uid = decode_uid(args[1]);
H A Dproperty_service.c63 unsigned int uid; member in struct:__anon372
106 unsigned int uid; member in struct:__anon373
259 * Returns 1 if uid allowed, 0 otherwise.
261 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) { argument
264 if (uid == AID_SYSTEM || uid == AID_ROOT)
270 if ((uid && control_perms[i].uid == uid) ||
281 * Returns 1 if uid allowe
283 check_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) argument
[all...]
H A Dueventd.c116 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 Dutil.c45 * android_name_to_id - returns the integer uid/gid associated with the given
63 * numeric or name representation, into the integer uid or gid. Returns -1U on
88 int create_socket(const char *name, int type, mode_t perm, uid_t uid, gid_t gid) argument
133 chown(addr.sun_path, uid, gid);
137 addr.sun_path, perm, uid, gid);
H A Dutil.h29 uid_t uid, gid_t gid);
/system/core/libcutils/
H A Dfs.c33 int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid) { argument
50 if (((sb.st_mode & ALL_PERMS) == mode) && (sb.st_uid == uid) && (sb.st_gid == gid)) {
69 if (TEMP_FAILURE_RETRY(chown(path, uid, gid)) == -1) {
70 ALOGE("Failed to chown(%s, %d, %d): %s", path, uid, gid, strerror(errno));
H A Dmq.c51 uid_t uid; member in struct:__anon392
628 // Fake gid and uid until we have the real thing. The real creds are
631 credentials.uid = 0;
1050 credentials.uid = ucredentials.uid;
H A Dmultiuser.c19 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 Dqtaguid.c99 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 Dsockets.c37 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 Duevent.c40 * 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 DNetlinkListener.cpp48 uid_t uid = -1; local
51 socket, mBuffer, sizeof(mBuffer), &uid));
53 if (uid > 0)
54 LOG_EVENT_INT(65537, uid);

Completed in 164 milliseconds

12