Home | History | Annotate | Download | only in init

Lines Matching refs:gid

75     unsigned int gid;
96 mode_t perm, unsigned int uid, unsigned int gid,
114 node->dp.gid = gid;
148 INFO("fixup %s %d %d 0%o\n", buf, dp->uid, dp->gid, dp->perm);
149 chown(buf, dp->uid, dp->gid);
154 static mode_t get_device_perm(const char *path, unsigned *uid, unsigned *gid)
176 *gid = dp->gid;
181 *gid = 0;
190 unsigned gid;
195 mode = get_device_perm(path, &uid, &gid) | (block ? S_IFBLK : S_IFCHR);
203 /* Temporarily change egid to avoid race condition setting the gid of the
206 * racy. Fixing the gid race at least fixed the issue with system_server
207 * opening dynamic input devices under the AID_INPUT gid. */
208 setegid(gid);