Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 137) sorted by relevance

123456

/fs/quota/
Dkqid.c21 return gid_eq(left.gid, right.gid); in qid_eq()
47 return gid_lt(left.gid, right.gid); in qid_lt()
74 return from_kgid(targ, kqid.gid); in from_kqid()
107 return from_kgid_munged(targ, kqid.gid); in from_kqid_munged()
126 return gid_valid(qid.gid); in qid_valid()
/fs/nfsd/
Dflexfilelayoutxdr.c31 struct ff_idmap gid; in nfsd4_ff_encode_layoutget() local
36 gid.len = sprintf(gid.buf, "%u", from_kgid(&init_user_ns, fl->gid)); in nfsd4_ff_encode_layoutget()
40 8 + uid.len + 8 + gid.len; in nfsd4_ff_encode_layoutget()
70 p = xdr_encode_opaque(p, gid.buf, gid.len); in nfsd4_ff_encode_layoutget()
Dauth.c59 if (gid_eq(GLOBAL_ROOT_GID, rqgi->gid[i])) in nfsd_setuser()
60 gi->gid[i] = exp->ex_anon_gid; in nfsd_setuser()
62 gi->gid[i] = rqgi->gid[i]; in nfsd_setuser()
/fs/sysfs/
Dgroup.c34 kuid_t uid, kgid_t gid, in create_files() argument
64 mode, uid, gid, NULL); in create_files()
95 uid, gid, NULL); in create_files()
112 kgid_t gid; in internal_create_group() local
126 kobject_get_ownership(kobj, &uid, &gid); in internal_create_group()
138 uid, gid, kobj, NULL); in internal_create_group()
148 error = create_files(kn, kobj, uid, gid, grp, update); in internal_create_group()
330 kgid_t gid; in sysfs_merge_group() local
339 kobject_get_ownership(kobj, &uid, &gid); in sysfs_merge_group()
343 (*attr)->mode, uid, gid, NULL); in sysfs_merge_group()
Dfile.c247 umode_t mode, kuid_t uid, kgid_t gid, const void *ns) in sysfs_add_file_mode_ns() argument
305 kn = __kernfs_create_file(parent, attr->name, mode & 0777, uid, gid, in sysfs_add_file_mode_ns()
325 kgid_t gid; in sysfs_create_file_ns() local
330 kobject_get_ownership(kobj, &uid, &gid); in sysfs_create_file_ns()
332 uid, gid, ns); in sysfs_create_file_ns()
362 kgid_t gid; in sysfs_add_file_to_group() local
375 kobject_get_ownership(kobj, &uid, &gid); in sysfs_add_file_to_group()
377 attr->mode, uid, gid, NULL); in sysfs_add_file_to_group()
539 kgid_t gid; in sysfs_create_bin_file() local
544 kobject_get_ownership(kobj, &uid, &gid); in sysfs_create_bin_file()
[all …]
Ddir.c44 kgid_t gid; in sysfs_create_dir_ns() local
57 kobject_get_ownership(kobj, &uid, &gid); in sysfs_create_dir_ns()
60 S_IRWXU | S_IRUGO | S_IXUGO, uid, gid, in sysfs_create_dir_ns()
/fs/sdcardfs/
Dsuper.c115 opt->gid = old->gid; in sdcardfs_clone_mnt_data()
125 old->gid = new->gid; in sdcardfs_copy_mnt_data()
134 opts->gid = fcopts->vfsopts.gid; in sdcardfs_update_mnt_data()
263 if (vfsopts->gid != 0) in sdcardfs_show_options()
264 seq_printf(m, ",gid=%u", vfsopts->gid); in sdcardfs_show_options()
Dderived_perm.c178 gid_t gid = sbi->options.fs_low_gid; in fixup_lower_ownership() local
219 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership()
221 gid = multiuser_get_uid(info_d->userid, get_type(name)); in fixup_lower_ownership()
224 gid = AID_MEDIA_OBB; in fixup_lower_ownership()
228 gid = multiuser_get_ext_gid(info_d->d_uid); in fixup_lower_ownership()
230 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership()
234 gid = multiuser_get_ext_cache_gid(info_d->d_uid); in fixup_lower_ownership()
236 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership()
245 if (d_inode(path.dentry)->i_gid.val != gid || d_inode(path.dentry)->i_uid.val != uid) { in fixup_lower_ownership()
249 newattrs.ia_gid = make_kgid(current_user_ns(), gid); in fixup_lower_ownership()
/fs/gfs2/
Dquota.h20 extern int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
23 extern int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
26 extern int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid,
29 kuid_t uid, kgid_t gid);
/fs/tracefs/
Dinode.c140 kgid_t gid; member
168 kgid_t gid; in tracefs_parse_options() local
190 gid = make_kgid(current_user_ns(), option); in tracefs_parse_options()
191 if (!gid_valid(gid)) in tracefs_parse_options()
193 opts->gid = gid; in tracefs_parse_options()
220 inode->i_gid = opts->gid; in tracefs_apply_options()
249 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in tracefs_show_options()
251 from_kgid_munged(&init_user_ns, opts->gid)); in tracefs_show_options()
/fs/devpts/
Dinode.c97 kgid_t gid; member
250 kgid_t gid; in parse_mount_options() local
255 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options()
289 gid = make_kgid(current_user_ns(), option); in parse_mount_options()
290 if (!gid_valid(gid)) in parse_mount_options()
292 opts->gid = gid; in parse_mount_options()
413 from_kgid_munged(&init_user_ns, opts->gid)); in devpts_show_options()
580 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
/fs/affs/
Dinode.c84 id = be16_to_cpu(tail->gid); in affs_iget()
176 gid_t gid; in affs_write_inode() local
198 gid = i_gid_read(inode); in affs_write_inode()
202 if (gid == 0 || gid == 0xFFFF) in affs_write_inode()
203 gid = gid ^ ~0; in affs_write_inode()
208 tail->gid = cpu_to_be16(gid); in affs_write_inode()
Dsuper.c190 parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, in parse_options() argument
199 *gid = current_gid(); in parse_options()
259 *gid = make_kgid(current_user_ns(), option); in parse_options()
260 if (!gid_valid(*gid)) in parse_options()
345 kgid_t gid; in affs_fill_super() local
373 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, in affs_fill_super()
384 sbi->s_gid = gid; in affs_fill_super()
558 kgid_t gid; in affs_remount() local
573 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, in affs_remount()
585 sbi->s_gid = gid; in affs_remount()
/fs/hpfs/
Dsuper.c314 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument
346 *gid = make_kgid(current_user_ns(), option); in parse_opts()
347 if (!gid_valid(*gid)) in parse_opts()
446 kgid_t gid; in hpfs_remount_fs() local
457 uid = sbi->sb_uid; gid = sbi->sb_gid; in hpfs_remount_fs()
463 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs()
479 sbi->sb_uid = uid; sbi->sb_gid = gid; in hpfs_remount_fs()
548 kgid_t gid; in hpfs_fill_super() local
568 gid = current_gid(); in hpfs_fill_super()
577 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super()
[all …]
/fs/proc/
Dproc_net.c336 kgid_t gid; in proc_net_ns_init() local
356 gid = make_kgid(net->user_ns, 0); in proc_net_ns_init()
357 if (!gid_valid(gid)) in proc_net_ns_init()
358 gid = netd->gid; in proc_net_ns_init()
360 proc_set_user(netd, uid, gid); in proc_net_ns_init()
/fs/9p/
Dvfs_inode_dotl.c232 kgid_t gid; in v9fs_vfs_atomic_open_dotl() local
278 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_atomic_open_dotl()
289 mode, gid, &qid); in v9fs_vfs_atomic_open_dotl()
374 kgid_t gid; in v9fs_vfs_mkdir_dotl() local
397 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_mkdir_dotl()
407 err = p9_client_mkdir_dotl(dfid, name, mode, gid, &qid); in v9fs_vfs_mkdir_dotl()
556 p9attr.gid = iattr->ia_gid; in v9fs_vfs_setattr_dotl()
672 kgid_t gid; in v9fs_vfs_symlink_dotl() local
691 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_symlink_dotl()
694 err = p9_client_symlink(dfid, name, symname, gid, &qid); in v9fs_vfs_symlink_dotl()
[all …]
/fs/debugfs/
Dinode.c78 kgid_t gid; member
106 kgid_t gid; in debugfs_parse_options() local
128 gid = make_kgid(current_user_ns(), option); in debugfs_parse_options()
129 if (!gid_valid(gid)) in debugfs_parse_options()
131 opts->gid = gid; in debugfs_parse_options()
158 inode->i_gid = opts->gid; in debugfs_apply_options()
187 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in debugfs_show_options()
189 from_kgid_munged(&init_user_ns, opts->gid)); in debugfs_show_options()
/fs/hfsplus/
Doptions.c58 opts->gid = current_gid(); in hfsplus_fill_defaults()
150 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options()
151 if (!gid_valid(sbi->gid)) { in hfsplus_parse_options()
227 from_kgid_munged(&init_user_ns, sbi->gid)); in hfsplus_show_options()
/fs/xfs/
Dxfs_linux.h182 static inline uint32_t xfs_kgid_to_gid(kgid_t gid) in xfs_kgid_to_gid() argument
184 return from_kgid(&init_user_ns, gid); in xfs_kgid_to_gid()
187 static inline kgid_t xfs_gid_to_kgid(uint32_t gid) in xfs_gid_to_kgid() argument
189 return make_kgid(&init_user_ns, gid); in xfs_gid_to_kgid()
/fs/befs/
Dlinuxvfs.c349 befs_sb->mount_opts.gid : in befs_iget()
350 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); in befs_iget()
698 kgid_t gid; in parse_options() local
702 opts->gid = GLOBAL_ROOT_GID; in parse_options()
736 gid = INVALID_GID; in parse_options()
738 gid = make_kgid(current_user_ns(), option); in parse_options()
739 if (!gid_valid(gid)) { in parse_options()
744 opts->gid = gid; in parse_options()
776 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in befs_show_options()
778 from_kgid_munged(&init_user_ns, opts->gid)); in befs_show_options()
/fs/nfs/
Dnfs4idmap.c125 kgid_t gid; in nfs_fattr_map_group_name() local
129 if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { in nfs_fattr_map_group_name()
130 fattr->gid = gid; in nfs_fattr_map_group_name()
759 …fs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, kgid_t *gid) in nfs_map_group_to_gid() argument
768 *gid = make_kgid(idmap_userns(idmap), id); in nfs_map_group_to_gid()
769 if (!gid_valid(*gid)) in nfs_map_group_to_gid()
790 int nfs_map_gid_to_group(const struct nfs_server *server, kgid_t gid, char *buf, size_t buflen) in nfs_map_gid_to_group() argument
796 id = from_kgid_munged(idmap_userns(idmap), gid); in nfs_map_gid_to_group()
/fs/orangefs/
Dinode.c87 kgid_t gid; member
127 wr.gid = ow->gid; in orangefs_writepages_work()
182 ow->gid = wr->gid; in orangefs_writepages_callback()
187 if (!uid_eq(ow->uid, wr->uid) || !gid_eq(ow->gid, wr->gid)) { in orangefs_writepages_callback()
421 gid_eq(wr->gid, current_fsgid())) { in orangefs_write_begin()
438 wr->gid = current_fsgid(); in orangefs_write_begin()
513 wr->gid = current_fsgid(); in orangefs_invalidatepage()
524 wr->gid = current_fsgid(); in orangefs_invalidatepage()
750 gid_eq(wr->gid, current_fsgid())) { in orangefs_page_mkwrite()
769 wr->gid = current_fsgid(); in orangefs_page_mkwrite()
/fs/kernfs/
Dsymlink.c32 kgid_t gid = GLOBAL_ROOT_GID; in kernfs_create_link() local
36 gid = target->iattr->ia_gid; in kernfs_create_link()
39 kn = kernfs_new_node(parent, name, S_IFLNK|S_IRWXUGO, uid, gid, in kernfs_create_link()
/fs/cifs/
Dcifsacl.c377 kgid_t gid; in sid_to_id() local
381 gid = make_kgid(&init_user_ns, id); in sid_to_id()
382 if (gid_valid(gid)) { in sid_to_id()
383 fgid = gid; in sid_to_id()
436 kgid_t gid; in sid_to_id() local
439 gid = make_kgid(&init_user_ns, id); in sid_to_id()
440 if (gid_valid(gid)) in sid_to_id()
441 fgid = gid; in sid_to_id()
951 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, in build_sec_desc() argument
1004 if (gid_valid(gid)) { /* chgrp */ in build_sec_desc()
[all …]
/fs/autofs/
Dinode.c30 ino->gid = GLOBAL_ROOT_GID; in autofs_clean_ino()
140 kgid_t gid; in parse_options() local
177 gid = make_kgid(current_user_ns(), option); in parse_options()
178 if (!gid_valid(gid)) in parse_options()
180 root->i_gid = gid; in parse_options()

123456