Lines Matching refs:gid
288 static int setugid(int uid, int gid, int *suid, int *sgid) in setugid() argument
295 if (setresgid(-1, gid, *sgid) == -1) { in setugid()
304 if (uid == 0 && gid == 0) { in setugid()
644 int mode, uid, gid, cur_uid, cur_gid; in do_create_others() local
649 retval = proxy_unmarshal(iovec, offset, "dd", &uid, &gid); in do_create_others()
654 retval = setugid(uid, gid, &cur_uid, &cur_gid); in do_create_others()
701 int flags, mode, uid, gid, cur_uid, cur_gid; in do_create() local
705 &path, &flags, &mode, &uid, &gid); in do_create()
709 ret = setugid(uid, gid, &cur_uid, &cur_gid); in do_create()
748 static int proxy_socket(const char *path, uid_t uid, gid_t gid) in proxy_socket() argument
782 if (chown(proxy.sun_path, uid, gid) < 0) { in proxy_socket()
868 int mode, uid, gid; in process_requests() local
938 &uid, &gid); in process_requests()
940 retval = lchown(path.data, uid, gid); in process_requests()