Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 115) 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/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);
29 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 (path.dentry->d_inode->i_gid.val != gid || path.dentry->d_inode->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.h229 gid_t gid; member
434 if (vfsopts->gid == AID_SDCARD_RW && !sbi->options.default_normal) in get_gid()
443 return multiuser_get_uid(data->userid, vfsopts->gid); in get_gid()
466 if (opts->gid == AID_SDCARD_RW) in get_mode()
557 static inline int prepare_dir(const char *path_s, uid_t uid, gid_t gid, mode_t mode) in prepare_dir() argument
580 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/tracefs/
Dinode.c143 kgid_t gid; member
171 kgid_t gid; in tracefs_parse_options() local
193 gid = make_kgid(current_user_ns(), option); in tracefs_parse_options()
194 if (!gid_valid(gid)) in tracefs_parse_options()
196 opts->gid = gid; in tracefs_parse_options()
223 inode->i_gid = opts->gid; in tracefs_apply_options()
252 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in tracefs_show_options()
254 from_kgid_munged(&init_user_ns, opts->gid)); in tracefs_show_options()
/fs/affs/
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()
258 *gid = make_kgid(current_user_ns(), option); in parse_options()
259 if (!gid_valid(*gid)) in parse_options()
310 kgid_t gid; in affs_fill_super() local
336 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, in affs_fill_super()
347 sbi->s_gid = gid; in affs_fill_super()
517 kgid_t gid; in affs_remount() local
533 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, in affs_remount()
547 sbi->s_gid = gid; in affs_remount()
Dinode.c84 id = be16_to_cpu(tail->gid); in affs_iget()
173 gid_t gid; in affs_write_inode() local
194 gid = i_gid_read(inode); in affs_write_inode()
198 if (gid == 0 || gid == 0xFFFF) in affs_write_inode()
199 gid = gid ^ ~0; in affs_write_inode()
204 tail->gid = cpu_to_be16(gid); in affs_write_inode()
/fs/debugfs/
Dinode.c54 kgid_t gid; member
82 kgid_t gid; in debugfs_parse_options() local
104 gid = make_kgid(current_user_ns(), option); in debugfs_parse_options()
105 if (!gid_valid(gid)) in debugfs_parse_options()
107 opts->gid = gid; in debugfs_parse_options()
134 inode->i_gid = opts->gid; in debugfs_apply_options()
163 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in debugfs_show_options()
165 from_kgid_munged(&init_user_ns, opts->gid)); in debugfs_show_options()
/fs/hpfs/
Dsuper.c292 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument
324 *gid = make_kgid(current_user_ns(), option); in parse_opts()
325 if (!gid_valid(*gid)) in parse_opts()
424 kgid_t gid; in hpfs_remount_fs() local
436 uid = sbi->sb_uid; gid = sbi->sb_gid; in hpfs_remount_fs()
442 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs()
458 sbi->sb_uid = uid; sbi->sb_gid = gid; in hpfs_remount_fs()
500 kgid_t gid; in hpfs_fill_super() local
522 gid = current_gid(); in hpfs_fill_super()
531 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super()
[all …]
/fs/devpts/
Dinode.c104 kgid_t gid; member
164 kgid_t gid; in parse_mount_options() local
169 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options()
200 gid = make_kgid(current_user_ns(), option); in parse_mount_options()
201 if (!gid_valid(gid)) in parse_mount_options()
203 opts->gid = gid; in parse_mount_options()
342 from_kgid_munged(&init_user_ns, opts->gid)); in devpts_show_options()
618 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
/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()
685 kgid_t gid; in v9fs_vfs_symlink_dotl() local
704 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_symlink_dotl()
707 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/
Didmap.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()
747 …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
756 *gid = make_kgid(&init_user_ns, id); in nfs_map_group_to_gid()
757 if (!gid_valid(*gid)) in nfs_map_group_to_gid()
778 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
784 id = from_kgid(&init_user_ns, gid); in nfs_map_gid_to_group()
/fs/autofs4/
Dinode.c40 ino->gid = GLOBAL_ROOT_GID; in autofs4_clean_ino()
129 static int parse_options(char *options, int *pipefd, kuid_t *uid, kgid_t *gid, in parse_options() argument
138 *gid = current_gid(); in parse_options()
169 *gid = make_kgid(current_user_ns(), option); in parse_options()
170 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/xfs/
Dxfs_linux.h213 static inline __uint32_t xfs_kgid_to_gid(kgid_t gid) in xfs_kgid_to_gid() argument
215 return from_kgid(&init_user_ns, gid); in xfs_kgid_to_gid()
218 static inline kgid_t xfs_gid_to_kgid(__uint32_t gid) in xfs_gid_to_kgid() argument
220 return make_kgid(&init_user_ns, gid); in xfs_gid_to_kgid()
Dxfs_iops.c451 stat->gid = inode->i_gid; in xfs_vn_getattr()
540 kgid_t gid = GLOBAL_ROOT_GID, igid = GLOBAL_ROOT_GID; in xfs_setattr_nonsize() local
579 gid = iattr->ia_gid; in xfs_setattr_nonsize()
582 gid = inode->i_gid; in xfs_setattr_nonsize()
593 xfs_kgid_to_gid(gid), in xfs_setattr_nonsize()
619 gid = (mask & ATTR_GID) ? iattr->ia_gid : igid; in xfs_setattr_nonsize()
628 (XFS_IS_GQUOTA_ON(mp) && !gid_eq(igid, gid)))) { in xfs_setattr_nonsize()
668 if (!gid_eq(igid, gid)) { in xfs_setattr_nonsize()
677 ip->i_d.di_gid = xfs_kgid_to_gid(gid); in xfs_setattr_nonsize()
678 inode->i_gid = gid; in xfs_setattr_nonsize()
/fs/ncpfs/
Dinode.c238 inode->i_gid = server->m.gid; in ncp_set_attr()
339 if (!gid_eq(server->m.gid, GLOBAL_ROOT_GID)) in ncp_show_options()
341 from_kgid_munged(&init_user_ns, server->m.gid)); in ncp_show_options()
395 data->gid = GLOBAL_ROOT_GID; in ncp_parse_options()
414 data->gid = make_kgid(current_user_ns(), optint); in ncp_parse_options()
415 if (!gid_valid(data->gid)) { in ncp_parse_options()
504 data.gid = make_kgid(current_user_ns(), md->gid); in ncp_fill_super()
523 data.gid = make_kgid(current_user_ns(), md->gid); in ncp_fill_super()
540 !gid_valid(data.gid)) in ncp_fill_super()
896 if ((attr->ia_valid & ATTR_GID) && !gid_eq(attr->ia_gid, server->m.gid)) in ncp_notify_change()
/fs/befs/
Dlinuxvfs.c363 befs_sb->mount_opts.gid : in befs_iget()
364 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); in befs_iget()
684 kgid_t gid; in parse_options() local
688 opts->gid = GLOBAL_ROOT_GID; in parse_options()
721 gid = INVALID_GID; in parse_options()
723 gid = make_kgid(current_user_ns(), option); in parse_options()
724 if (!gid_valid(gid)) { in parse_options()
729 opts->gid = gid; in parse_options()
/fs/cifs/
Dcifsacl.c315 kgid_t gid; in sid_to_id() local
318 gid = make_kgid(&init_user_ns, id); in sid_to_id()
319 if (gid_valid(gid)) in sid_to_id()
320 fgid = gid; in sid_to_id()
790 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, int *aclflag) in build_sec_desc() argument
842 if (gid_valid(gid)) { /* chgrp */ in build_sec_desc()
850 id = from_kgid(&init_user_ns, gid); in build_sec_desc()
1053 kuid_t uid, kgid_t gid) in id_mode_to_cifs_acl() argument
1100 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/jfs/
Dsuper.c345 char *gid = args[0].from; in parse_options() local
347 int rc = kstrtouint(gid, 0, &val); in parse_options()
351 sbi->gid = make_kgid(current_user_ns(), val); in parse_options()
352 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()
/fs/nfsd/
Dnfs4acl.c441 kgid_t gid; member
596 pace->e_gid = state->groups->aces[i].gid; in posix_state_to_acl()
648 static int find_gid(struct posix_acl_state *state, kgid_t gid) in find_gid() argument
654 if (gid_eq(a->aces[i].gid, gid)) in find_gid()
658 a->aces[i].gid = gid; in find_gid()

12345