/fs/quota/ |
D | kqid.c | 20 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/ |
D | quota.h | 20 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); 28 kuid_t uid, kgid_t gid);
|
/fs/sdcardfs/ |
D | derived_perm.c | 175 gid_t gid = sbi->options.fs_low_gid; in fixup_lower_ownership() local 216 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership() 218 gid = multiuser_get_uid(info_d->userid, get_type(name)); in fixup_lower_ownership() 221 gid = AID_MEDIA_OBB; in fixup_lower_ownership() 225 gid = multiuser_get_ext_gid(info_d->d_uid); in fixup_lower_ownership() 227 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership() 231 gid = multiuser_get_ext_cache_gid(info_d->d_uid); in fixup_lower_ownership() 233 gid = multiuser_get_uid(info_d->userid, AID_MEDIA_RW); in fixup_lower_ownership() 242 if (path.dentry->d_inode->i_gid != gid || path.dentry->d_inode->i_uid != uid) { in fixup_lower_ownership() 245 newattrs.ia_gid = make_kgid(current_user_ns(), gid); in fixup_lower_ownership()
|
D | super.c | 161 opt->gid = old->gid; in sdcardfs_clone_mnt_data() 171 old->gid = new->gid; in sdcardfs_copy_mnt_data() 297 if (vfsopts->gid != 0) in sdcardfs_show_options() 298 seq_printf(m, ",gid=%u", vfsopts->gid); in sdcardfs_show_options()
|
D | sdcardfs.h | 226 gid_t gid; member 419 if (opts->gid == AID_SDCARD_RW) in get_gid() 428 return multiuser_get_uid(data->userid, opts->gid); in get_gid() 451 if (opts->gid == AID_SDCARD_RW) in get_mode() 543 static inline int prepare_dir(const char *path_s, uid_t uid, gid_t gid, mode_t mode) in prepare_dir() argument 566 attrs.ia_gid = gid; in prepare_dir()
|
D | main.c | 66 vfsopts->gid = 0; in parse_options() 102 vfsopts->gid = option; in parse_options() 170 vfsopts->gid = option; in parse_options_remount() 195 pr_info("sdcardfs : options - gid:%d\n", vfsopts->gid); in parse_options_remount()
|
/fs/affs/ |
D | super.c | 196 parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, in parse_options() argument 205 *gid = current_gid(); in parse_options() 261 *gid = make_kgid(current_user_ns(), option); in parse_options() 262 if (!gid_valid(*gid)) in parse_options() 314 kgid_t gid; in affs_fill_super() local 340 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, in affs_fill_super() 353 sbi->s_gid = gid; in affs_fill_super() 540 kgid_t gid; in affs_remount() local 556 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, in affs_remount() 570 sbi->s_gid = gid; in affs_remount()
|
D | inode.c | 87 id = be16_to_cpu(tail->gid); in affs_iget() 176 gid_t gid; in affs_write_inode() local 197 gid = i_gid_read(inode); in affs_write_inode() 201 if (gid == 0 || gid == 0xFFFF) in affs_write_inode() 202 gid = gid ^ ~0; in affs_write_inode() 207 tail->gid = cpu_to_be16(gid); in affs_write_inode()
|
/fs/hpfs/ |
D | super.c | 259 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument 291 *gid = make_kgid(current_user_ns(), option); in parse_opts() 292 if (!gid_valid(*gid)) in parse_opts() 391 kgid_t gid; in hpfs_remount_fs() local 403 uid = sbi->sb_uid; gid = sbi->sb_gid; in hpfs_remount_fs() 409 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs() 425 sbi->sb_uid = uid; sbi->sb_gid = gid; in hpfs_remount_fs() 467 kgid_t gid; in hpfs_fill_super() local 492 gid = current_gid(); in hpfs_fill_super() 501 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super() [all …]
|
/fs/devpts/ |
D | inode.c | 102 kgid_t gid; member 162 kgid_t gid; in parse_mount_options() local 167 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options() 198 gid = make_kgid(current_user_ns(), option); in parse_mount_options() 199 if (!gid_valid(gid)) in parse_mount_options() 201 opts->gid = gid; in parse_mount_options() 338 seq_printf(seq, ",gid=%u", from_kgid_munged(&init_user_ns, opts->gid)); in devpts_show_options() 593 inode->i_gid = opts->setgid ? opts->gid : current_fsgid(); in devpts_pty_new()
|
/fs/debugfs/ |
D | inode.c | 131 kgid_t gid; member 159 kgid_t gid; in debugfs_parse_options() local 181 gid = make_kgid(current_user_ns(), option); in debugfs_parse_options() 182 if (!gid_valid(gid)) in debugfs_parse_options() 184 opts->gid = gid; in debugfs_parse_options() 211 inode->i_gid = opts->gid; in debugfs_apply_options() 240 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in debugfs_show_options() 242 from_kgid_munged(&init_user_ns, opts->gid)); in debugfs_show_options()
|
/fs/9p/ |
D | vfs_inode_dotl.c | 248 kgid_t gid; in v9fs_vfs_atomic_open_dotl() local 300 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_atomic_open_dotl() 311 mode, gid, &qid); in v9fs_vfs_atomic_open_dotl() 397 kgid_t gid; in v9fs_vfs_mkdir_dotl() local 422 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_mkdir_dotl() 432 err = p9_client_mkdir_dotl(dfid, name, mode, gid, &qid); in v9fs_vfs_mkdir_dotl() 583 p9attr.gid = iattr->ia_gid; in v9fs_vfs_setattr_dotl() 698 kgid_t gid; in v9fs_vfs_symlink_dotl() local 717 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_symlink_dotl() 720 err = p9_client_symlink(dfid, name, (char *)symname, gid, &qid); in v9fs_vfs_symlink_dotl() [all …]
|
/fs/hfsplus/ |
D | options.c | 57 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() 227 from_kgid_munged(&init_user_ns, sbi->gid)); in hfsplus_show_options()
|
/fs/autofs4/ |
D | inode.c | 40 ino->gid = GLOBAL_ROOT_GID; in autofs4_clean_ino() 131 static int parse_options(char *options, int *pipefd, kuid_t *uid, kgid_t *gid, in parse_options() argument 139 *gid = current_gid(); in parse_options() 171 *gid = make_kgid(current_user_ns(), option); in parse_options() 172 if (!gid_valid(*gid)) in parse_options()
|
D | waitq.c | 166 packet->gid = from_kgid_munged(user_ns, wq->gid); in autofs4_notify_daemon() 425 wq->gid = current_gid(); in autofs4_wait() 516 ino->gid = wq->gid; in autofs4_wait()
|
/fs/nfs/ |
D | idmap.c | 114 kgid_t gid; in nfs_fattr_map_group_name() local 118 if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { in nfs_fattr_map_group_name() 119 fattr->gid = gid; in nfs_fattr_map_group_name() 859 …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 868 *gid = make_kgid(&init_user_ns, id); in nfs_map_group_to_gid() 869 if (!gid_valid(*gid)) in nfs_map_group_to_gid() 888 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 894 id = from_kgid(&init_user_ns, gid); in nfs_map_gid_to_group()
|
/fs/ncpfs/ |
D | inode.c | 237 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() 411 data->gid = make_kgid(current_user_ns(), optint); in ncp_parse_options() 412 if (!gid_valid(data->gid)) in ncp_parse_options() 499 data.gid = make_kgid(current_user_ns(), md->gid); in ncp_fill_super() 518 data.gid = make_kgid(current_user_ns(), md->gid); in ncp_fill_super() 535 !gid_valid(data.gid)) in ncp_fill_super() 906 if ((attr->ia_valid & ATTR_GID) && !gid_eq(attr->ia_gid, server->m.gid)) in ncp_notify_change()
|
/fs/befs/ |
D | linuxvfs.c | 359 befs_sb->mount_opts.gid : in befs_iget() 360 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); in befs_iget() 686 kgid_t gid; in parse_options() local 690 opts->gid = GLOBAL_ROOT_GID; in parse_options() 723 gid = INVALID_GID; in parse_options() 725 gid = make_kgid(current_user_ns(), option); in parse_options() 726 if (!gid_valid(gid)) { in parse_options() 731 opts->gid = gid; in parse_options()
|
/fs/ |
D | xattr_acl.c | 25 kgid_t gid; in posix_acl_fix_xattr_userns() local 47 gid = make_kgid(from, le32_to_cpu(entry->e_id)); in posix_acl_fix_xattr_userns() 48 entry->e_id = cpu_to_le32(from_kgid(to, gid)); in posix_acl_fix_xattr_userns()
|
/fs/xfs/ |
D | xfs_iops.c | 424 stat->gid = ip->i_d.di_gid; in xfs_vn_getattr() 492 gid_t gid = 0, igid = 0; in xfs_setattr_nonsize() local 528 gid = iattr->ia_gid; in xfs_setattr_nonsize() 531 gid = ip->i_d.di_gid; in xfs_setattr_nonsize() 541 error = xfs_qm_vop_dqalloc(ip, uid, gid, xfs_get_projid(ip), in xfs_setattr_nonsize() 566 gid = (mask & ATTR_GID) ? iattr->ia_gid : igid; in xfs_setattr_nonsize() 575 (XFS_IS_GQUOTA_ON(mp) && igid != gid))) { in xfs_setattr_nonsize() 615 if (igid != gid) { in xfs_setattr_nonsize() 623 ip->i_d.di_gid = gid; in xfs_setattr_nonsize() 624 inode->i_gid = gid; in xfs_setattr_nonsize()
|
/fs/jfs/ |
D | super.c | 334 char *gid = args[0].from; in parse_options() local 335 gid_t val = simple_strtoul(gid, &gid, 0); in parse_options() 336 sbi->gid = make_kgid(current_user_ns(), val); in parse_options() 337 if (!gid_valid(sbi->gid)) in parse_options() 493 sbi->gid = INVALID_GID; in jfs_fill_super() 692 if (gid_valid(sbi->gid)) in jfs_show_options() 693 seq_printf(seq, ",gid=%d", from_kgid(&init_user_ns, sbi->gid)); in jfs_show_options()
|
/fs/cifs/ |
D | cifsacl.c | 316 kgid_t gid; in sid_to_id() local 319 gid = make_kgid(&init_user_ns, id); in sid_to_id() 320 if (gid_valid(gid)) in sid_to_id() 321 fgid = gid; in sid_to_id() 791 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, int *aclflag) in build_sec_desc() argument 843 if (gid_valid(gid)) { /* chgrp */ in build_sec_desc() 851 id = from_kgid(&init_user_ns, gid); in build_sec_desc() 1023 kuid_t uid, kgid_t gid) in id_mode_to_cifs_acl() argument 1054 rc = build_sec_desc(pntsd, pnntsd, secdesclen, nmode, uid, gid, in id_mode_to_cifs_acl()
|
/fs/nfs_common/ |
D | nfsacl.c | 42 kgid_t gid; member 66 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode() 107 .gid = inode->i_gid, in nfsacl_encode()
|
/fs/nfsd/ |
D | nfs4acl.c | 415 kgid_t gid; member 568 pace->e_gid = state->groups->aces[i].gid; in posix_state_to_acl() 618 static int find_gid(struct posix_acl_state *state, kgid_t gid) in find_gid() argument 624 if (gid_eq(a->aces[i].gid, gid)) in find_gid() 628 a->aces[i].gid = gid; in find_gid()
|
/fs/jffs2/ |
D | fs.c | 104 ri->gid = cpu_to_je16((ivalid & ATTR_GID)? in jffs2_do_setattr() 153 i_gid_write(inode, je16_to_cpu(ri->gid)); in jffs2_do_setattr() 282 i_gid_write(inode, je16_to_cpu(latest_node.gid)); in jffs2_iget() 448 ri->gid = cpu_to_je16(i_gid_read(dir_i)); in jffs2_new_inode() 452 ri->gid = cpu_to_je16(from_kgid(&init_user_ns, current_fsgid())); in jffs2_new_inode() 472 i_gid_write(inode, je16_to_cpu(ri->gid)); in jffs2_new_inode()
|