/fs/proc/ |
D | uid.c | 29 uid_t uid; member 34 static bool uid_hash_entry_exists_locked(uid_t uid) in uid_hash_entry_exists_locked() argument 38 hash_for_each_possible(proc_uid_hash_table, entry, hash, uid) { in uid_hash_entry_exists_locked() 39 if (entry->uid == uid) in uid_hash_entry_exists_locked() 49 uid_t uid = from_kuid_munged(current_user_ns(), kuid); in proc_register_uid() local 52 exists = uid_hash_entry_exists_locked(uid); in proc_register_uid() 60 entry->uid = uid; in proc_register_uid() 63 if (uid_hash_entry_exists_locked(uid)) in proc_register_uid() 66 hash_add(proc_uid_hash_table, &entry->hash, uid); in proc_register_uid() 127 uid_t uid = name_to_int(&dentry->d_name); in proc_uident_instantiate() local [all …]
|
D | proc_net.c | 335 kuid_t uid; in proc_net_ns_init() local 352 uid = make_kuid(net->user_ns, 0); in proc_net_ns_init() 353 if (!uid_valid(uid)) in proc_net_ns_init() 354 uid = netd->uid; in proc_net_ns_init() 360 proc_set_user(netd, uid, gid); in proc_net_ns_init()
|
/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/sdcardfs/ |
D | multiuser.h | 38 static inline bool uid_is_app(uid_t uid) in uid_is_app() argument 40 appid_t appid = uid % AID_USER_OFFSET; in uid_is_app() 45 static inline gid_t multiuser_get_ext_cache_gid(uid_t uid) in multiuser_get_ext_cache_gid() argument 47 return uid - AID_APP_START + AID_EXT_CACHE_GID_START; in multiuser_get_ext_cache_gid() 50 static inline gid_t multiuser_get_ext_gid(uid_t uid) in multiuser_get_ext_gid() argument 52 return uid - AID_APP_START + AID_EXT_GID_START; in multiuser_get_ext_gid()
|
D | derived_perm.c | 39 uid_t uid) in setup_derived_state() argument 45 info->data->d_uid = uid; in setup_derived_state() 177 uid_t uid = sbi->options.fs_low_uid; in fixup_lower_ownership() local 204 uid = multiuser_get_uid(info_d->userid, uid); in fixup_lower_ownership() 207 uid = AID_MEDIA_OBB; in fixup_lower_ownership() 245 if (d_inode(path.dentry)->i_gid.val != gid || d_inode(path.dentry)->i_uid.val != uid) { in fixup_lower_ownership() 248 newattrs.ia_uid = make_kuid(current_user_ns(), uid); in fixup_lower_ownership()
|
/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/sysfs/ |
D | group.c | 34 kuid_t uid, kgid_t gid, in create_files() argument 64 mode, uid, gid, NULL); in create_files() 95 uid, gid, NULL); in create_files() 111 kuid_t uid; in internal_create_group() local 126 kobject_get_ownership(kobj, &uid, &gid); in internal_create_group() 138 uid, gid, kobj, NULL); in internal_create_group() 148 error = create_files(kn, kobj, uid, gid, grp, update); in internal_create_group() 329 kuid_t uid; in sysfs_merge_group() local 339 kobject_get_ownership(kobj, &uid, &gid); in sysfs_merge_group() 343 (*attr)->mode, uid, gid, NULL); in sysfs_merge_group()
|
D | file.c | 247 umode_t mode, kuid_t uid, kgid_t gid, const void *ns) in sysfs_add_file_mode_ns() argument 305 kn = __kernfs_create_file(parent, attr->name, mode & 0777, uid, gid, in sysfs_add_file_mode_ns() 324 kuid_t uid; in sysfs_create_file_ns() local 330 kobject_get_ownership(kobj, &uid, &gid); in sysfs_create_file_ns() 332 uid, gid, ns); in sysfs_create_file_ns() 361 kuid_t uid; in sysfs_add_file_to_group() local 375 kobject_get_ownership(kobj, &uid, &gid); in sysfs_add_file_to_group() 377 attr->mode, uid, gid, NULL); in sysfs_add_file_to_group() 538 kuid_t uid; in sysfs_create_bin_file() local 544 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/squashfs/ |
D | squashfs_fs.h | 271 __le16 uid; member 280 __le16 uid; member 290 __le16 uid; member 301 __le16 uid; member 312 __le16 uid; member 324 __le16 uid; member 336 __le16 uid; member 350 __le16 uid; member 367 __le16 uid; member 381 __le16 uid; member
|
/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 167 kuid_t uid; in tracefs_parse_options() local 182 uid = make_kuid(current_user_ns(), option); in tracefs_parse_options() 183 if (!uid_valid(uid)) in tracefs_parse_options() 185 opts->uid = uid; in tracefs_parse_options() 219 inode->i_uid = opts->uid; in tracefs_apply_options() 246 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in tracefs_show_options() 248 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 | 314 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument 339 *uid = make_kuid(current_user_ns(), option); in parse_opts() 340 if (!uid_valid(*uid)) in parse_opts() 445 kuid_t uid; in hpfs_remount_fs() local 457 uid = sbi->sb_uid; gid = sbi->sb_gid; in hpfs_remount_fs() 463 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs() 479 sbi->sb_uid = uid; sbi->sb_gid = gid; in hpfs_remount_fs() 547 kuid_t uid; in hpfs_fill_super() local 567 uid = current_uid(); in hpfs_fill_super() 577 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super() [all …]
|
/fs/debugfs/ |
D | inode.c | 77 kuid_t uid; member 105 kuid_t uid; in debugfs_parse_options() local 120 uid = make_kuid(current_user_ns(), option); in debugfs_parse_options() 121 if (!uid_valid(uid)) in debugfs_parse_options() 123 opts->uid = uid; in debugfs_parse_options() 157 inode->i_uid = opts->uid; in debugfs_apply_options() 184 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in debugfs_show_options() 186 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() 226 from_kuid_munged(&init_user_ns, sbi->uid), in hfsplus_show_options()
|
/fs/xfs/ |
D | xfs_linux.h | 172 static inline uint32_t xfs_kuid_to_uid(kuid_t uid) in xfs_kuid_to_uid() argument 174 return from_kuid(&init_user_ns, uid); in xfs_kuid_to_uid() 177 static inline kuid_t xfs_uid_to_kuid(uint32_t uid) in xfs_uid_to_kuid() argument 179 return make_kuid(&init_user_ns, uid); in xfs_uid_to_kuid()
|
/fs/befs/ |
D | linuxvfs.c | 346 befs_sb->mount_opts.uid : in befs_iget() 347 make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid)); in befs_iget() 697 kuid_t uid; in parse_options() local 701 opts->uid = GLOBAL_ROOT_UID; in parse_options() 722 uid = INVALID_UID; in parse_options() 724 uid = make_kuid(current_user_ns(), option); in parse_options() 725 if (!uid_valid(uid)) { in parse_options() 730 opts->uid = uid; in parse_options() 773 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in befs_show_options() 775 from_kuid_munged(&init_user_ns, opts->uid)); in befs_show_options()
|
/fs/nfs/ |
D | nfs4idmap.c | 111 kuid_t uid; in nfs_fattr_map_owner_name() local 115 if (nfs_map_name_to_uid(server, owner->data, owner->len, &uid) == 0) { in nfs_fattr_map_owner_name() 116 fattr->uid = uid; in nfs_fattr_map_owner_name() 742 …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 751 *uid = make_kuid(idmap_userns(idmap), id); in nfs_map_name_to_uid() 752 if (!uid_valid(*uid)) in nfs_map_name_to_uid() 776 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 782 id = from_kuid_munged(idmap_userns(idmap), uid); in nfs_map_uid_to_name()
|
/fs/orangefs/ |
D | inode.c | 86 kuid_t uid; member 126 wr.uid = ow->uid; in orangefs_writepages_work() 181 ow->uid = wr->uid; in orangefs_writepages_callback() 187 if (!uid_eq(ow->uid, wr->uid) || !gid_eq(ow->gid, wr->gid)) { in orangefs_writepages_callback() 420 uid_eq(wr->uid, current_fsuid()) && in orangefs_write_begin() 437 wr->uid = current_fsuid(); in orangefs_write_begin() 512 wr->uid = current_fsuid(); in orangefs_invalidatepage() 523 wr->uid = current_fsuid(); in orangefs_invalidatepage() 749 if (uid_eq(wr->uid, current_fsuid()) && in orangefs_page_mkwrite() 768 wr->uid = current_fsuid(); in orangefs_page_mkwrite()
|
/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()
|