/fs/quota/ |
D | kqid.c | 21 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/ |
D | flexfilelayoutxdr.c | 31 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()
|
D | auth.c | 59 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/tracefs/ |
D | inode.c | 140 kgid_t gid; member 164 static void change_gid(struct dentry *dentry, kgid_t gid) in change_gid() argument 168 dentry->d_inode->i_gid = gid; in change_gid() 178 static void set_gid(struct dentry *parent, kgid_t gid) in set_gid() argument 186 change_gid(this_parent, gid); in set_gid() 197 change_gid(dentry, gid); in set_gid() 241 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/sysfs/ |
D | group.c | 35 kuid_t uid, kgid_t gid, in create_files() argument 65 mode, uid, gid, NULL); in create_files() 96 uid, gid, NULL); in create_files() 113 kgid_t gid; in internal_create_group() local 127 kobject_get_ownership(kobj, &uid, &gid); in internal_create_group() 139 uid, gid, kobj, NULL); in internal_create_group() 149 error = create_files(kn, kobj, uid, gid, grp, update); in internal_create_group() 331 kgid_t gid; in sysfs_merge_group() local 340 kobject_get_ownership(kobj, &uid, &gid); in sysfs_merge_group() 344 (*attr)->mode, uid, gid, NULL); in sysfs_merge_group()
|
D | file.c | 248 umode_t mode, kuid_t uid, kgid_t gid, const void *ns) in sysfs_add_file_mode_ns() argument 306 kn = __kernfs_create_file(parent, attr->name, mode & 0777, uid, gid, in sysfs_add_file_mode_ns() 326 kgid_t gid; in sysfs_create_file_ns() local 331 kobject_get_ownership(kobj, &uid, &gid); in sysfs_create_file_ns() 333 uid, gid, ns); in sysfs_create_file_ns() 363 kgid_t gid; in sysfs_add_file_to_group() local 376 kobject_get_ownership(kobj, &uid, &gid); in sysfs_add_file_to_group() 378 attr->mode, uid, gid, NULL); in sysfs_add_file_to_group() 541 kgid_t gid; in sysfs_create_bin_file() local 546 kobject_get_ownership(kobj, &uid, &gid); in sysfs_create_bin_file() [all …]
|
D | dir.c | 44 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/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, 29 kuid_t uid, kgid_t gid);
|
/fs/devpts/ |
D | inode.c | 97 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/ |
D | inode.c | 84 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()
|
D | super.c | 190 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/9p/ |
D | vfs_inode_dotl.c | 232 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() 546 .gid = INVALID_GID, in v9fs_vfs_setattr_dotl() 562 p9attr.gid = iattr->ia_gid; in v9fs_vfs_setattr_dotl() 684 kgid_t gid; in v9fs_vfs_symlink_dotl() local 703 gid = v9fs_get_fsgid_for_create(dir); in v9fs_vfs_symlink_dotl() [all …]
|
/fs/hpfs/ |
D | super.c | 313 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument 345 *gid = make_kgid(current_user_ns(), option); in parse_opts() 346 if (!gid_valid(*gid)) in parse_opts() 445 kgid_t gid; in hpfs_remount_fs() local 456 uid = sbi->sb_uid; gid = sbi->sb_gid; in hpfs_remount_fs() 462 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs() 478 sbi->sb_uid = uid; sbi->sb_gid = gid; in hpfs_remount_fs() 547 kgid_t gid; in hpfs_fill_super() local 567 gid = current_gid(); in hpfs_fill_super() 576 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super() [all …]
|
/fs/proc/ |
D | proc_net.c | 339 kgid_t gid; in proc_net_ns_init() local 359 gid = make_kgid(net->user_ns, 0); in proc_net_ns_init() 360 if (!gid_valid(gid)) in proc_net_ns_init() 361 gid = netd->gid; in proc_net_ns_init() 363 proc_set_user(netd, uid, gid); in proc_net_ns_init()
|
/fs/debugfs/ |
D | inode.c | 79 kgid_t gid; member 107 kgid_t gid; in debugfs_parse_options() local 129 gid = make_kgid(current_user_ns(), option); in debugfs_parse_options() 130 if (!gid_valid(gid)) in debugfs_parse_options() 132 opts->gid = gid; in debugfs_parse_options() 159 inode->i_gid = opts->gid; in debugfs_apply_options() 188 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in debugfs_show_options() 190 from_kgid_munged(&init_user_ns, opts->gid)); in debugfs_show_options()
|
/fs/hfsplus/ |
D | options.c | 58 opts->gid = current_gid(); in hfsplus_fill_defaults() 152 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options() 153 if (!gid_valid(sbi->gid)) { in hfsplus_parse_options() 231 from_kgid_munged(&init_user_ns, sbi->gid)); in hfsplus_show_options()
|
/fs/befs/ |
D | linuxvfs.c | 351 befs_sb->mount_opts.gid : in befs_iget() 352 make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid)); in befs_iget() 700 kgid_t gid; in parse_options() local 704 opts->gid = GLOBAL_ROOT_GID; in parse_options() 738 gid = INVALID_GID; in parse_options() 740 gid = make_kgid(current_user_ns(), option); in parse_options() 741 if (!gid_valid(gid)) { in parse_options() 746 opts->gid = gid; in parse_options() 778 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in befs_show_options() 780 from_kgid_munged(&init_user_ns, opts->gid)); in befs_show_options()
|
/fs/orangefs/ |
D | inode.c | 82 kgid_t gid; member 122 wr.gid = ow->gid; in orangefs_writepages_work() 177 ow->gid = wr->gid; in orangefs_writepages_callback() 182 if (!uid_eq(ow->uid, wr->uid) || !gid_eq(ow->gid, wr->gid)) { in orangefs_writepages_callback() 389 gid_eq(wr->gid, current_fsgid())) { in orangefs_write_begin() 406 wr->gid = current_fsgid(); in orangefs_write_begin() 473 wr->gid = current_fsgid(); in orangefs_invalidatepage() 484 wr->gid = current_fsgid(); in orangefs_invalidatepage() 705 gid_eq(wr->gid, current_fsgid())) { in orangefs_page_mkwrite() 724 wr->gid = current_fsgid(); in orangefs_page_mkwrite()
|
/fs/vboxsf/ |
D | super.c | 59 kgid_t gid; in vboxsf_parse_param() local 82 gid = make_kgid(current_user_ns(), result.uint_32); in vboxsf_parse_param() 83 if (!gid_valid(gid)) in vboxsf_parse_param() 85 ctx->o.gid = gid; in vboxsf_parse_param() 442 current_uid_gid(&ctx->o.uid, &ctx->o.gid); in vboxsf_init_fs_context()
|
/fs/nfs/ |
D | nfs4idmap.c | 126 kgid_t gid; in nfs_fattr_map_group_name() local 130 if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { in nfs_fattr_map_group_name() 131 fattr->gid = gid; in nfs_fattr_map_group_name() 762 …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 771 *gid = make_kgid(idmap_userns(idmap), id); in nfs_map_group_to_gid() 772 if (!gid_valid(*gid)) in nfs_map_group_to_gid() 793 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 799 id = from_kgid_munged(idmap_userns(idmap), gid); in nfs_map_gid_to_group()
|
/fs/cifs/ |
D | cifsacl.c | 376 kgid_t gid; in sid_to_id() local 380 gid = make_kgid(&init_user_ns, id); in sid_to_id() 381 if (gid_valid(gid)) { in sid_to_id() 382 fgid = gid; in sid_to_id() 435 kgid_t gid; in sid_to_id() local 438 gid = make_kgid(&init_user_ns, id); in sid_to_id() 439 if (gid_valid(gid)) in sid_to_id() 440 fgid = gid; in sid_to_id() 1003 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, in build_sec_desc() argument 1067 if (gid_valid(gid)) { /* chgrp */ in build_sec_desc() [all …]
|
/fs/kernfs/ |
D | symlink.c | 32 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/autofs/ |
D | inode.c | 30 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()
|
D | waitq.c | 149 packet->gid = from_kgid_munged(user_ns, wq->gid); in autofs_notify_daemon() 437 wq->gid = current_gid(); in autofs_wait() 509 ino->gid = wq->gid; in autofs_wait()
|
/fs/nfs_common/ |
D | nfsacl.c | 40 kgid_t gid; member 64 *p++ = htonl(from_kgid(&init_user_ns, nfsacl_desc->gid)); in xdr_nfsace_encode() 105 .gid = inode->i_gid, in nfsacl_encode()
|