/fs/9p/ |
D | fid.c | 49 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) in v9fs_fid_find() argument 54 dentry, dentry, from_kuid(&init_user_ns, uid), in v9fs_fid_find() 62 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find() 102 kuid_t uid, int any) in v9fs_fid_lookup_with_uid() argument 112 fid = v9fs_fid_find(dentry, uid, any); in v9fs_fid_lookup_with_uid() 122 fid = v9fs_fid_find(ds, uid, any); in v9fs_fid_lookup_with_uid() 131 fid = v9fs_fid_find(dentry->d_sb->s_root, uid, any); in v9fs_fid_lookup_with_uid() 142 fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, in v9fs_fid_lookup_with_uid() 218 kuid_t uid; in v9fs_fid_lookup() local 228 uid = current_fsuid(); in v9fs_fid_lookup() [all …]
|
D | v9fs.c | 145 from_kuid_munged(&init_user_ns, v9ses->uid)); in v9fs_show_options() 322 uid_t uid; in v9fs_parse_options() local 324 uid = simple_strtoul(s, &e, 10); in v9fs_parse_options() 332 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options() 333 if (!uid_valid(v9ses->uid)) { in v9fs_parse_options() 402 v9ses->uid = INVALID_UID; in v9fs_session_init() 444 v9ses->uid = INVALID_UID; in v9fs_session_init() 464 fid->uid = v9ses->uid; in v9fs_session_init() 466 fid->uid = INVALID_UID; in v9fs_session_init()
|
/fs/quota/ |
D | kqid.c | 19 return uid_eq(left.uid, right.uid); in qid_eq() 45 return uid_lt(left.uid, right.uid); in qid_lt() 72 return from_kuid(targ, kqid.uid); in from_kqid() 105 return from_kuid_munged(targ, kqid.uid); in from_kqid_munged() 124 return uid_valid(qid.uid); in qid_valid()
|
/fs/nfsd/ |
D | flexfilelayoutxdr.c | 30 struct ff_idmap uid; in nfsd4_ff_encode_layoutget() local 35 uid.len = sprintf(uid.buf, "%u", from_kuid(&init_user_ns, fl->uid)); in nfsd4_ff_encode_layoutget() 40 8 + uid.len + 8 + gid.len; in nfsd4_ff_encode_layoutget() 69 p = xdr_encode_opaque(p, uid.buf, uid.len); in nfsd4_ff_encode_layoutget()
|
/fs/squashfs/ |
D | squashfs_fs.h | 272 __le16 uid; member 281 __le16 uid; member 291 __le16 uid; member 302 __le16 uid; member 313 __le16 uid; member 325 __le16 uid; member 337 __le16 uid; member 351 __le16 uid; member 368 __le16 uid; member 382 __le16 uid; member
|
/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() 112 kuid_t uid; 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() 330 kuid_t uid; 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() 325 kuid_t uid; 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() 362 kuid_t uid; 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() 540 kuid_t uid; in sysfs_create_bin_file() local 546 kobject_get_ownership(kobj, &uid, &gid); in sysfs_create_bin_file() [all …]
|
D | dir.c | 43 kuid_t uid; 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/tracefs/ |
D | inode.c | 139 kuid_t uid; member 240 kuid_t uid; in tracefs_parse_options() local 256 uid = make_kuid(current_user_ns(), option); in tracefs_parse_options() 257 if (!uid_valid(uid)) in tracefs_parse_options() 259 opts->uid = uid; in tracefs_parse_options() 303 inode->i_uid = opts->uid; in tracefs_apply_options() 334 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in tracefs_show_options() 336 from_kuid_munged(&init_user_ns, opts->uid)); in tracefs_show_options()
|
/fs/devpts/ |
D | inode.c | 96 kuid_t uid; member 249 kuid_t uid; in parse_mount_options() local 254 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options() 280 uid = make_kuid(current_user_ns(), option); in parse_mount_options() 281 if (!uid_valid(uid)) in parse_mount_options() 283 opts->uid = uid; in parse_mount_options() 410 from_kuid_munged(&init_user_ns, opts->uid)); in devpts_show_options() 579 inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); in devpts_pty_new()
|
/fs/affs/ |
D | inode.c | 76 id = be16_to_cpu(tail->uid); in affs_iget() 175 uid_t uid; in affs_write_inode() local 197 uid = i_uid_read(inode); in affs_write_inode() 200 if (uid == 0 || uid == 0xFFFF) in affs_write_inode() 201 uid = uid ^ ~0; in affs_write_inode() 206 tail->uid = cpu_to_be16(uid); 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 198 *uid = current_uid(); in parse_options() 267 *uid = make_kuid(current_user_ns(), option); in parse_options() 268 if (!uid_valid(*uid)) in parse_options() 344 kuid_t uid; in affs_fill_super() local 373 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, in affs_fill_super() 383 sbi->s_uid = uid; in affs_fill_super() 557 kuid_t uid; in affs_remount() local 573 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, in affs_remount() 584 sbi->s_uid = uid; in affs_remount()
|
/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 338 *uid = make_kuid(current_user_ns(), option); in parse_opts() 339 if (!uid_valid(*uid)) in parse_opts() 444 kuid_t uid; 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() 546 kuid_t uid; in hpfs_fill_super() local 566 uid = current_uid(); 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 | 338 kuid_t uid; in proc_net_ns_init() local 355 uid = make_kuid(net->user_ns, 0); in proc_net_ns_init() 356 if (!uid_valid(uid)) in proc_net_ns_init() 357 uid = netd->uid; in proc_net_ns_init() 363 proc_set_user(netd, uid, gid); in proc_net_ns_init()
|
/fs/debugfs/ |
D | inode.c | 78 kuid_t uid; member 106 kuid_t uid; in debugfs_parse_options() local 121 uid = make_kuid(current_user_ns(), option); in debugfs_parse_options() 122 if (!uid_valid(uid)) in debugfs_parse_options() 124 opts->uid = uid; in debugfs_parse_options() 158 inode->i_uid = opts->uid; in debugfs_apply_options() 185 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in debugfs_show_options() 187 from_kuid_munged(&init_user_ns, opts->uid)); in debugfs_show_options()
|
/fs/hfsplus/ |
D | options.c | 57 opts->uid = current_uid(); in hfsplus_fill_defaults() 139 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp); in hfsplus_parse_options() 140 if (!uid_valid(sbi->uid)) { in hfsplus_parse_options() 230 from_kuid_munged(&init_user_ns, sbi->uid), in hfsplus_show_options()
|
/fs/befs/ |
D | linuxvfs.c | 348 befs_sb->mount_opts.uid : in befs_iget() 349 make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid)); in befs_iget() 699 kuid_t uid; in parse_options() local 703 opts->uid = GLOBAL_ROOT_UID; in parse_options() 724 uid = INVALID_UID; in parse_options() 726 uid = make_kuid(current_user_ns(), option); in parse_options() 727 if (!uid_valid(uid)) { in parse_options() 732 opts->uid = uid; in parse_options() 775 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in befs_show_options() 777 from_kuid_munged(&init_user_ns, opts->uid)); in befs_show_options()
|
/fs/orangefs/ |
D | inode.c | 81 kuid_t uid; member 121 wr.uid = ow->uid; in orangefs_writepages_work() 176 ow->uid = wr->uid; in orangefs_writepages_callback() 182 if (!uid_eq(ow->uid, wr->uid) || !gid_eq(ow->gid, wr->gid)) { in orangefs_writepages_callback() 388 uid_eq(wr->uid, current_fsuid()) && in orangefs_write_begin() 405 wr->uid = current_fsuid(); in orangefs_write_begin() 472 wr->uid = current_fsuid(); in orangefs_invalidatepage() 483 wr->uid = current_fsuid(); in orangefs_invalidatepage() 704 if (uid_eq(wr->uid, current_fsuid()) && in orangefs_page_mkwrite() 723 wr->uid = current_fsuid(); in orangefs_page_mkwrite()
|
/fs/vboxsf/ |
D | super.c | 58 kuid_t uid; in vboxsf_parse_param() local 76 uid = make_kuid(current_user_ns(), result.uint_32); in vboxsf_parse_param() 77 if (!uid_valid(uid)) in vboxsf_parse_param() 79 ctx->o.uid = uid; in vboxsf_parse_param() 442 current_uid_gid(&ctx->o.uid, &ctx->o.gid); in vboxsf_init_fs_context()
|
/fs/nfs/ |
D | nfs4idmap.c | 112 kuid_t uid; in nfs_fattr_map_owner_name() local 116 if (nfs_map_name_to_uid(server, owner->data, owner->len, &uid) == 0) { in nfs_fattr_map_owner_name() 117 fattr->uid = uid; in nfs_fattr_map_owner_name() 745 …nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, kuid_t *uid) in nfs_map_name_to_uid() argument 754 *uid = make_kuid(idmap_userns(idmap), id); in nfs_map_name_to_uid() 755 if (!uid_valid(*uid)) in nfs_map_name_to_uid() 779 int nfs_map_uid_to_name(const struct nfs_server *server, kuid_t uid, char *buf, size_t buflen) in nfs_map_uid_to_name() argument 785 id = from_kuid_munged(idmap_userns(idmap), uid); in nfs_map_uid_to_name()
|
/fs/cifs/ |
D | cifsacl.c | 386 kuid_t uid; in sid_to_id() local 390 uid = make_kuid(&init_user_ns, id); in sid_to_id() 391 if (uid_valid(uid)) { in sid_to_id() 392 fuid = uid; in sid_to_id() 428 kuid_t uid; in sid_to_id() local 431 uid = make_kuid(&init_user_ns, id); in sid_to_id() 432 if (uid_valid(uid)) in sid_to_id() 433 fuid = uid; in sid_to_id() 1003 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, in build_sec_desc() argument 1036 if (uid_valid(uid)) { /* chown */ in build_sec_desc() [all …]
|
/fs/kernfs/ |
D | symlink.c | 31 kuid_t uid = GLOBAL_ROOT_UID; in kernfs_create_link() local 35 uid = target->iattr->ia_uid; 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 | 29 ino->uid = GLOBAL_ROOT_UID; in autofs_clean_ino() 139 kuid_t uid; in parse_options() local 169 uid = make_kuid(current_user_ns(), option); in parse_options() 170 if (!uid_valid(uid)) in parse_options() 172 root->i_uid = uid; in parse_options()
|
D | waitq.c | 148 packet->uid = from_kuid_munged(user_ns, wq->uid); in autofs_notify_daemon() 436 wq->uid = current_uid(); in autofs_wait() 508 ino->uid = wq->uid; in autofs_wait()
|