Home
last modified time | relevance | path

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

12345

/fs/quota/
Dkqid.c20 return gid_eq(left.gid, right.gid); in qid_eq()
46 return gid_lt(left.gid, right.gid); in qid_lt()
73 return from_kgid(targ, kqid.gid); in from_kqid()
106 return from_kgid_munged(targ, kqid.gid); in from_kqid_munged()
125 return gid_valid(qid.gid); in qid_valid()
/fs/tracefs/
Dinode.c143 kgid_t gid; member
165 static void change_gid(struct dentry *dentry, kgid_t gid) in change_gid() argument
169 dentry->d_inode->i_gid = gid; in change_gid()
179 static void set_gid(struct dentry *parent, kgid_t gid) in set_gid() argument
187 change_gid(this_parent, gid); in set_gid()
198 change_gid(dentry, gid); in set_gid()
242 kgid_t gid; in tracefs_parse_options() local
264 gid = make_kgid(current_user_ns(), option); in tracefs_parse_options()
265 if (!gid_valid(gid)) in tracefs_parse_options()
267 opts->gid = gid; in tracefs_parse_options()
[all …]
/fs/gfs2/
Dquota.h21 extern int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
24 extern int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
27 extern int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid,
30 kuid_t uid, kgid_t gid);
/fs/sdcardfs/
Dderived_perm.c174 gid_t gid = sbi->options.fs_low_gid; in fixup_lower_ownership() local
215 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership()
217 gid = multiuser_get_uid(info_d->userid, get_type(name)); in fixup_lower_ownership()
220 gid = AID_MEDIA_OBB; in fixup_lower_ownership()
224 gid = multiuser_get_ext_gid(info_d->d_uid); in fixup_lower_ownership()
226 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership()
230 gid = multiuser_get_ext_cache_gid(info_d->d_uid); in fixup_lower_ownership()
232 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership()
241 if (d_inode(path.dentry)->i_gid.val != gid || d_inode(path.dentry)->i_uid.val != uid) { in fixup_lower_ownership()
245 newattrs.ia_gid = make_kgid(current_user_ns(), gid); in fixup_lower_ownership()
Dsuper.c161 opt->gid = old->gid; in sdcardfs_clone_mnt_data()
171 old->gid = new->gid; in sdcardfs_copy_mnt_data()
300 if (vfsopts->gid != 0) in sdcardfs_show_options()
301 seq_printf(m, ",gid=%u", vfsopts->gid); in sdcardfs_show_options()
Dsdcardfs.h204 gid_t gid; member
409 if (vfsopts->gid == AID_SDCARD_RW && !sbi->options.default_normal) in get_gid()
418 return multiuser_get_uid(data->userid, vfsopts->gid); in get_gid()
441 if (opts->gid == AID_SDCARD_RW) in get_mode()
532 static inline int prepare_dir(const char *path_s, uid_t uid, gid_t gid, mode_t mode) in prepare_dir() argument
555 attrs.ia_gid = make_kgid(&init_user_ns, gid); in prepare_dir()
Dmain.c68 vfsopts->gid = 0; in parse_options()
105 vfsopts->gid = option; in parse_options()
176 vfsopts->gid = option; in parse_options_remount()
202 pr_info("sdcardfs : options - gid:%d\n", vfsopts->gid); in parse_options_remount()
/fs/affs/
Dsuper.c191 parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, in parse_options() argument
200 *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()
311 kgid_t gid; in affs_fill_super() local
337 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, in affs_fill_super()
348 sbi->s_gid = gid; in affs_fill_super()
520 kgid_t gid; in affs_remount() local
540 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, in affs_remount()
555 sbi->s_gid = gid; in affs_remount()
Dinode.c82 id = be16_to_cpu(tail->gid); in affs_iget()
172 gid_t gid; in affs_write_inode() local
193 gid = i_gid_read(inode); in affs_write_inode()
197 if (gid == 0 || gid == 0xFFFF) in affs_write_inode()
198 gid = gid ^ ~0; in affs_write_inode()
203 tail->gid = cpu_to_be16(gid); in affs_write_inode()
/fs/hpfs/
Dsuper.c320 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument
352 *gid = make_kgid(current_user_ns(), option); in parse_opts()
353 if (!gid_valid(*gid)) in parse_opts()
452 kgid_t gid; in hpfs_remount_fs() local
463 uid = sbi->sb_uid; gid = sbi->sb_gid; in hpfs_remount_fs()
469 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs()
485 sbi->sb_uid = uid; sbi->sb_gid = gid; in hpfs_remount_fs()
554 kgid_t gid; in hpfs_fill_super() local
574 gid = current_gid(); in hpfs_fill_super()
583 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super()
[all …]
/fs/devpts/
Dinode.c104 kgid_t gid; member
167 kgid_t gid; in parse_mount_options() local
172 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options()
203 gid = make_kgid(current_user_ns(), option); in parse_mount_options()
204 if (!gid_valid(gid)) in parse_mount_options()
206 opts->gid = gid; in parse_mount_options()
345 from_kgid_munged(&init_user_ns, opts->gid)); in devpts_show_options()
630 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
/fs/debugfs/
Dinode.c49 kgid_t gid; member
77 kgid_t gid; in debugfs_parse_options() local
99 gid = make_kgid(current_user_ns(), option); in debugfs_parse_options()
100 if (!gid_valid(gid)) in debugfs_parse_options()
102 opts->gid = gid; in debugfs_parse_options()
129 inode->i_gid = opts->gid; in debugfs_apply_options()
158 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in debugfs_show_options()
160 from_kgid_munged(&init_user_ns, opts->gid)); in debugfs_show_options()
/fs/9p/
Dvfs_inode_dotl.c248 kgid_t gid; in v9fs_vfs_atomic_open_dotl() local
294 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_atomic_open_dotl()
305 mode, gid, &qid); in v9fs_vfs_atomic_open_dotl()
390 kgid_t gid; in v9fs_vfs_mkdir_dotl() local
415 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_mkdir_dotl()
425 err = p9_client_mkdir_dotl(dfid, name, mode, gid, &qid); in v9fs_vfs_mkdir_dotl()
573 p9attr.gid = iattr->ia_gid; in v9fs_vfs_setattr_dotl()
689 kgid_t gid; in v9fs_vfs_symlink_dotl() local
708 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_symlink_dotl()
711 err = p9_client_symlink(dfid, name, (char *)symname, gid, &qid); in v9fs_vfs_symlink_dotl()
[all …]
/fs/hfsplus/
Doptions.c57 opts->gid = current_gid(); in hfsplus_fill_defaults()
149 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options()
150 if (!gid_valid(sbi->gid)) { in hfsplus_parse_options()
226 from_kgid_munged(&init_user_ns, sbi->gid)); in hfsplus_show_options()
/fs/nfs/
Dnfs4idmap.c116 kgid_t gid; in nfs_fattr_map_group_name() local
120 if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { in nfs_fattr_map_group_name()
121 fattr->gid = gid; in nfs_fattr_map_group_name()
738 …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
747 *gid = make_kgid(&init_user_ns, id); in nfs_map_group_to_gid()
748 if (!gid_valid(*gid)) in nfs_map_group_to_gid()
769 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
775 id = from_kgid(&init_user_ns, gid); in nfs_map_gid_to_group()
/fs/autofs4/
Dinode.c39 ino->gid = GLOBAL_ROOT_GID; in autofs4_clean_ino()
128 static int parse_options(char *options, int *pipefd, kuid_t *uid, kgid_t *gid, in parse_options() argument
137 *gid = current_gid(); in parse_options()
168 *gid = make_kgid(current_user_ns(), option); in parse_options()
169 if (!gid_valid(*gid)) in parse_options()
Dwaitq.c162 packet->gid = from_kgid_munged(user_ns, wq->gid); in autofs4_notify_daemon()
443 wq->gid = current_gid(); in autofs4_wait()
533 ino->gid = wq->gid; in autofs4_wait()
/fs/ncpfs/
Dinode.c238 inode->i_gid = server->m.gid; in ncp_set_attr()
338 if (!gid_eq(server->m.gid, GLOBAL_ROOT_GID)) in ncp_show_options()
340 from_kgid_munged(&init_user_ns, server->m.gid)); in ncp_show_options()
394 data->gid = GLOBAL_ROOT_GID; in ncp_parse_options()
413 data->gid = make_kgid(current_user_ns(), optint); in ncp_parse_options()
414 if (!gid_valid(data->gid)) { in ncp_parse_options()
503 data.gid = make_kgid(current_user_ns(), md->gid); in ncp_fill_super()
522 data.gid = make_kgid(current_user_ns(), md->gid); in ncp_fill_super()
539 !gid_valid(data.gid)) in ncp_fill_super()
895 if ((attr->ia_valid & ATTR_GID) && !gid_eq(attr->ia_gid, server->m.gid)) in ncp_notify_change()
/fs/befs/
Dlinuxvfs.c350 befs_sb->mount_opts.gid : in befs_iget()
351 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); in befs_iget()
661 kgid_t gid; in parse_options() local
665 opts->gid = GLOBAL_ROOT_GID; in parse_options()
698 gid = INVALID_GID; in parse_options()
700 gid = make_kgid(current_user_ns(), option); in parse_options()
701 if (!gid_valid(gid)) { in parse_options()
706 opts->gid = gid; in parse_options()
/fs/xfs/
Dxfs_linux.h197 static inline __uint32_t xfs_kgid_to_gid(kgid_t gid) in xfs_kgid_to_gid() argument
199 return from_kgid(&init_user_ns, gid); in xfs_kgid_to_gid()
202 static inline kgid_t xfs_gid_to_kgid(__uint32_t gid) in xfs_gid_to_kgid() argument
204 return make_kgid(&init_user_ns, gid); in xfs_gid_to_kgid()
Dxfs_iops.c460 stat->gid = inode->i_gid; in xfs_vn_getattr()
549 kgid_t gid = GLOBAL_ROOT_GID, igid = GLOBAL_ROOT_GID; in xfs_setattr_nonsize() local
588 gid = iattr->ia_gid; in xfs_setattr_nonsize()
591 gid = inode->i_gid; in xfs_setattr_nonsize()
602 xfs_kgid_to_gid(gid), in xfs_setattr_nonsize()
628 gid = (mask & ATTR_GID) ? iattr->ia_gid : igid; in xfs_setattr_nonsize()
637 (XFS_IS_GQUOTA_ON(mp) && !gid_eq(igid, gid)))) { in xfs_setattr_nonsize()
677 if (!gid_eq(igid, gid)) { in xfs_setattr_nonsize()
686 ip->i_d.di_gid = xfs_kgid_to_gid(gid); in xfs_setattr_nonsize()
687 inode->i_gid = gid; in xfs_setattr_nonsize()
/fs/cifs/
Dcifsacl.c314 kgid_t gid; in sid_to_id() local
317 gid = make_kgid(&init_user_ns, id); in sid_to_id()
318 if (gid_valid(gid)) in sid_to_id()
319 fgid = gid; in sid_to_id()
789 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, int *aclflag) in build_sec_desc() argument
841 if (gid_valid(gid)) { /* chgrp */ in build_sec_desc()
849 id = from_kgid(&init_user_ns, gid); in build_sec_desc()
1052 kuid_t uid, kgid_t gid) in id_mode_to_cifs_acl() argument
1099 rc = build_sec_desc(pntsd, pnntsd, secdesclen, nmode, uid, gid, in id_mode_to_cifs_acl()
/fs/nfs_common/
Dnfsacl.c39 kgid_t gid; member
63 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode()
104 .gid = inode->i_gid, in nfsacl_encode()
/fs/nfsd/
Dnfs4acl.c429 kgid_t gid; member
542 pace->e_gid = state->groups->aces[i].gid; in posix_state_to_acl()
588 static int find_gid(struct posix_acl_state *state, kgid_t gid) in find_gid() argument
594 if (gid_eq(a->aces[i].gid, gid)) in find_gid()
598 a->aces[i].gid = gid; in find_gid()
/fs/jfs/
Dsuper.c348 char *gid = args[0].from; in parse_options() local
350 int rc = kstrtouint(gid, 0, &val); in parse_options()
354 sbi->gid = make_kgid(current_user_ns(), val); in parse_options()
355 if (!gid_valid(sbi->gid)) in parse_options()
507 sbi->gid = INVALID_GID; in jfs_fill_super()
706 if (gid_valid(sbi->gid)) in jfs_show_options()
707 seq_printf(seq, ",gid=%d", from_kgid(&init_user_ns, sbi->gid)); in jfs_show_options()

12345