Searched refs:gid (Results 1 - 25 of 39) sorted by relevance

12

/system/extras/ext4_utils/
H A Dcanned_fs_config.h24 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities);
H A Dcanned_fs_config.c30 unsigned gid; member in struct:__anon247
59 p->gid = atoi(strtok(NULL, " "));
84 unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) {
93 *gid = p->gid;
105 if (c_gid != *gid) printf("%s gid %d %d\n", path, *gid, c_gid);
83 canned_fs_config(const char* path, int dir, unsigned* uid, unsigned* gid, unsigned* mode, uint64_t* capabilities) argument
H A Dcontents.h29 u16 gid; member in struct:dentry
40 int inode_set_permissions(u32 inode_num, u16 mode, u16 uid, u16 gid, u32 mtime);
H A Dmake_ext4fs.c92 .gid = 0,
99 dentries.uid, dentries.gid, dentries.mtime);
194 unsigned int gid = 0; local
196 fs_config_func(dentries[i].path, dir, &uid, &gid, &mode, &capabilities);
199 dentries[i].gid = gid;
255 dentries[0].gid = 0;
293 dentries[i].uid, dentries[i].gid,
/system/extras/su/
H A Dsu.c35 void pwtoid(const char *tok, uid_t *uid, gid_t *gid) argument
41 if (gid) *gid = pw->pw_gid;
45 if (gid) *gid = tmpid;
49 void extract_uidgids(const char *uidgids, uid_t *uid, gid_t *gid, gid_t *gids, argument
58 *gid = *uid = 0;
66 pwtoid(tok, uid, gid);
69 /* gid is already set above */
74 pwtoid(tok, NULL, gid);
106 gid_t gid, gids[10]; local
[all...]
/system/core/init/
H A Ddevices.h26 unsigned int gid, unsigned short prefix,
H A Dueventd.c128 gid_t gid; local
190 ERROR("invalid gid '%s'\n", args[3]);
194 gid = ret;
196 add_dev_perms(name, attr, perm, uid, gid, prefix, wildcard);
H A Dutil.h29 uid_t uid, gid_t gid, const char *socketcon);
H A Dinit.h60 gid_t gid; member in struct:socketinfo
101 gid_t gid; member in struct:service
H A Ddevices.c79 unsigned int gid; member in struct:perms_
101 mode_t perm, unsigned int uid, unsigned int gid,
120 node->dp.gid = gid;
158 INFO("fixup %s %d %d 0%o\n", buf, dp->uid, dp->gid, dp->perm);
159 chown(buf, dp->uid, dp->gid);
192 unsigned *uid, unsigned *gid)
224 *gid = dp->gid;
230 *gid
100 add_dev_perms(const char *name, const char *attr, mode_t perm, unsigned int uid, unsigned int gid, unsigned short prefix, unsigned short wildcard) argument
191 get_device_perm(const char *path, const char **links, unsigned *uid, unsigned *gid) argument
240 unsigned gid; local
[all...]
/system/core/logd/
H A DLogCommand.cpp66 gid_t gid = cli->getGid(); local
67 if ((gid == AID_ROOT) || (gid == AID_SYSTEM) || (gid == AID_LOG)) {
115 if ((gid != g[0]) || (gid != g[1]) || (gid != g[2]) || (gid != g[3])) {
/system/core/toolbox/
H A Dpwcache.c43 char* group_from_gid(gid_t gid, int noname) { argument
44 struct group* g = getgrgid(gid);
47 snprintf(buf, sizeof(buf), "%lu", (long) gid);
H A Did.c20 static void print_gid(gid_t gid) argument
22 struct group *gr = getgrgid(gid);
24 printf("%d(%s)", gid, gr->gr_name);
26 printf("%d",gid);
41 printf(" gid=");
H A Dbsd-compatibility.h59 char* group_from_gid(gid_t gid, int noname);
H A Dtop.c59 gid_t gid; member in struct:proc_info
309 proc->gid = cur_proc.gid;
408 unsigned int uid, gid; local
414 sscanf(line, "Gid: %u", &gid);
417 proc->uid = uid; proc->gid = gid;
/system/core/run-as/
H A Drun-as.c46 * until the uid/gid has been dropped to that of a normal user
111 int myuid, uid, gid; local
152 uid = gid = info.uid;
153 if(setresgid(gid,gid,gid) || setresuid(uid,uid,uid)) {
/system/core/include/cutils/
H A Dfs.h45 extern int fs_prepare_dir(const char* path, mode_t mode, uid_t uid, gid_t gid);
/system/extras/tests/fstest/
H A Dperm_checker.c92 printf("# ERROR # Invalid gid '%s' reading line %d\n", str, line_num);
200 static void print_new_rule(const char *name, mode_t mode, uid_t uid, gid_t gid) argument
204 gr = getgrgid(gid);
207 gr->gr_name, gid);
211 static int pass_rule(const perm_rule_t *pr, mode_t mode, uid_t uid, gid_t gid) argument
215 (pr->min_gid <= gid) && (pr->max_gid >= gid) &&
223 static int validate_file(const char *name, mode_t mode, uid_t uid, gid_t gid) argument
232 if (!pass_rule(pr, mode, uid, gid))
245 print_new_rule(name, mode, uid, gid);
284 validate_link(const char *name, mode_t mode, uid_t uid, gid_t gid) argument
312 validate_dir(const char *name, mode_t mode, uid_t uid, gid_t gid) argument
[all...]
/system/core/toolbox/upstream-netbsd/sbin/chown/
H A Dchown.c69 static gid_t gid; variable
160 gid = (gid_t)-1;
186 gid = st.st_gid;
235 if ((*change_owner)(p->fts_accpath, uid, gid) && !fflag) {
258 gid = id(s, "group");
260 gid = gr->gr_gid;
267 if (*s == '\0') /* Argument was "[:.]gid". */
/system/core/include/private/
H A Dandroid_filesystem_config.h184 unsigned gid; member in struct:fs_path_config
241 /* the following file is INTENTIONALLY set-gid and not set-uid.
273 unsigned *uid, unsigned *gid, unsigned *mode, uint64_t *capabilities)
299 *gid = pc->gid;
305 path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode);
272 fs_config(const char *path, int dir, unsigned *uid, unsigned *gid, unsigned *mode, uint64_t *capabilities) argument
/system/core/adb/
H A Dfile_sync_service.c52 gid_t gid = -1; local
63 fs_config(name, 1, &uid, &gid, &mode, &cap);
71 ret = chown(name, uid, gid);
180 gid_t gid, mode_t mode, char *buffer, bool do_unlink)
204 if(fchown(fd, uid, gid) != 0) {
366 gid_t gid = -1; local
378 fs_config(tmp, 0, &uid, &gid, &mode, &cap);
380 ret = handle_send_file(s, path, uid, gid, mode, buffer, do_unlink);
179 handle_send_file(int s, char *path, uid_t uid, gid_t gid, mode_t mode, char *buffer, bool do_unlink) argument
/system/core/libcutils/
H A Dfs.c40 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));
/system/core/debuggerd/
H A Ddebuggerd.cpp51 uid_t uid, gid; member in struct:debugger_request_t
165 out_request->gid = cr.gid;
184 &out_request->uid, &out_request->gid);
213 ALOGV("BOOM: pid=%d uid=%d gid=%d tid=%d\n",
214 request.pid, request.uid, request.gid, request.tid);
/system/core/cpio/
H A Dmkbootfs.c40 int uid, gid, mode; member in struct:fs_config_entry
46 * gid, mode). */
60 // Use the list of file uid/gid/modes loaded from the file
71 s->st_gid = p->gid;
77 s->st_gid = empty_path_config->gid;
311 cc->gid = atoi(strtok(NULL, " \n"));
/system/core/sdcard/
H A Dsdcard.c181 gid_t gid; member in struct:node
427 attr->gid = node->gid;
458 node->gid = parent->gid;
485 node->gid = AID_SDCARD_PICS;
492 node->gid = AID_SDCARD_AV;
517 node->gid = AID_SDCARD_ALL;
534 node->gid = AID_SDCARD_R;
752 fuse->root.gid
1822 run(const char* source_path, const char* dest_path, uid_t uid, gid_t gid, gid_t write_gid, int num_threads, derive_t derive, bool split_perms) argument
1886 gid_t gid = 0; local
[all...]

Completed in 329 milliseconds

12