/fs/9p/ |
D | fid.c | 64 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) in v9fs_fid_find() argument 69 dentry, dentry, from_kuid(&init_user_ns, uid), in v9fs_fid_find() 77 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find() 117 kuid_t uid, int any) in v9fs_fid_lookup_with_uid() argument 127 fid = v9fs_fid_find(dentry, uid, any); in v9fs_fid_lookup_with_uid() 137 fid = v9fs_fid_find(ds, uid, any); in v9fs_fid_lookup_with_uid() 146 fid = v9fs_fid_find(dentry->d_sb->s_root, uid, any); in v9fs_fid_lookup_with_uid() 157 fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, in v9fs_fid_lookup_with_uid() 233 kuid_t uid; in v9fs_fid_lookup() local 243 uid = current_fsuid(); in v9fs_fid_lookup() [all …]
|
D | v9fs.c | 274 uid_t uid; in v9fs_parse_options() local 276 uid = simple_strtoul(s, &e, 10); in v9fs_parse_options() 284 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options() 285 if (!uid_valid(v9ses->uid)) { in v9fs_parse_options() 360 v9ses->uid = INVALID_UID; in v9fs_session_init() 402 v9ses->uid = INVALID_UID; in v9fs_session_init() 422 fid->uid = v9ses->uid; in v9fs_session_init() 424 fid->uid = INVALID_UID; in v9fs_session_init()
|
/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() 245 len = snprintf(buf, sizeof(buf), "%u", entry->uid); in proc_uid_readdir() [all …]
|
/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() 173 uid_t uid = sbi->options.fs_low_uid; in fixup_lower_ownership() local 200 uid = multiuser_get_uid(info_d->userid, uid); in fixup_lower_ownership() 203 uid = AID_MEDIA_OBB; in fixup_lower_ownership() 241 if (d_inode(path.dentry)->i_gid.val != gid || d_inode(path.dentry)->i_uid.val != uid) { in fixup_lower_ownership() 244 newattrs.ia_uid = make_kuid(current_user_ns(), uid); in fixup_lower_ownership()
|
/fs/quota/ |
D | kqid.c | 18 return uid_eq(left.uid, right.uid); in qid_eq() 44 return uid_lt(left.uid, right.uid); in qid_lt() 71 return from_kuid(targ, kqid.uid); in from_kqid() 104 return from_kuid_munged(targ, kqid.uid); in from_kqid_munged() 123 return uid_valid(qid.uid); in qid_valid()
|
/fs/squashfs/ |
D | squashfs_fs.h | 284 __le16 uid; member 293 __le16 uid; member 303 __le16 uid; member 314 __le16 uid; member 325 __le16 uid; member 337 __le16 uid; member 349 __le16 uid; member 363 __le16 uid; member 380 __le16 uid; member 394 __le16 uid; member
|
/fs/gfs2/ |
D | quota.h | 21 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, 30 kuid_t uid, kgid_t gid);
|
/fs/affs/ |
D | super.c | 191 parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, in parse_options() argument 199 *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() 310 kuid_t uid; in affs_fill_super() local 337 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, in affs_fill_super() 347 sbi->s_uid = uid; in affs_fill_super() 519 kuid_t uid; in affs_remount() local 540 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, in affs_remount() 554 sbi->s_uid = uid; in affs_remount()
|
D | inode.c | 74 id = be16_to_cpu(tail->uid); in affs_iget() 171 uid_t uid; in affs_write_inode() local 192 uid = i_uid_read(inode); in affs_write_inode() 195 if (uid == 0 || uid == 0xFFFF) in affs_write_inode() 196 uid = uid ^ ~0; in affs_write_inode() 201 tail->uid = cpu_to_be16(uid); in affs_write_inode()
|
/fs/hpfs/ |
D | super.c | 320 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument 345 *uid = make_kuid(current_user_ns(), option); in parse_opts() 346 if (!uid_valid(*uid)) in parse_opts() 451 kuid_t uid; in hpfs_remount_fs() local 463 uid = sbi->sb_uid; gid = sbi->sb_gid; in hpfs_remount_fs() 469 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, in hpfs_remount_fs() 485 sbi->sb_uid = uid; sbi->sb_gid = gid; in hpfs_remount_fs() 553 kuid_t uid; in hpfs_fill_super() local 573 uid = current_uid(); in hpfs_fill_super() 583 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super() [all …]
|
/fs/devpts/ |
D | inode.c | 103 kuid_t uid; member 166 kuid_t uid; in parse_mount_options() local 171 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options() 194 uid = make_kuid(current_user_ns(), option); in parse_mount_options() 195 if (!uid_valid(uid)) in parse_mount_options() 197 opts->uid = uid; in parse_mount_options() 342 from_kuid_munged(&init_user_ns, opts->uid)); in devpts_show_options() 629 inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); in devpts_pty_new()
|
/fs/tracefs/ |
D | inode.c | 142 kuid_t uid; member 241 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() 294 inode->i_uid = opts->uid; in tracefs_apply_options() 321 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in tracefs_show_options() 323 from_kuid_munged(&init_user_ns, opts->uid)); in tracefs_show_options()
|
/fs/debugfs/ |
D | inode.c | 48 kuid_t uid; member 76 kuid_t uid; in debugfs_parse_options() local 91 uid = make_kuid(current_user_ns(), option); in debugfs_parse_options() 92 if (!uid_valid(uid)) in debugfs_parse_options() 94 opts->uid = uid; in debugfs_parse_options() 128 inode->i_uid = opts->uid; in debugfs_apply_options() 155 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in debugfs_show_options() 157 from_kuid_munged(&init_user_ns, opts->uid)); in debugfs_show_options()
|
/fs/hfsplus/ |
D | options.c | 56 opts->uid = current_uid(); in hfsplus_fill_defaults() 138 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp); in hfsplus_parse_options() 139 if (!uid_valid(sbi->uid)) { in hfsplus_parse_options() 225 from_kuid_munged(&init_user_ns, sbi->uid), in hfsplus_show_options()
|
/fs/nfs/ |
D | nfs4idmap.c | 102 kuid_t uid; in nfs_fattr_map_owner_name() local 106 if (nfs_map_name_to_uid(server, owner->data, owner->len, &uid) == 0) { in nfs_fattr_map_owner_name() 107 fattr->uid = uid; in nfs_fattr_map_owner_name() 721 …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 730 *uid = make_kuid(&init_user_ns, id); in nfs_map_name_to_uid() 731 if (!uid_valid(*uid)) in nfs_map_name_to_uid() 755 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 761 id = from_kuid(&init_user_ns, uid); in nfs_map_uid_to_name()
|
/fs/autofs4/ |
D | inode.c | 38 ino->uid = GLOBAL_ROOT_UID; in autofs4_clean_ino() 128 static int parse_options(char *options, int *pipefd, kuid_t *uid, kgid_t *gid, in parse_options() argument 136 *uid = current_uid(); in parse_options() 161 *uid = make_kuid(current_user_ns(), option); in parse_options() 162 if (!uid_valid(*uid)) in parse_options()
|
/fs/ncpfs/ |
D | inode.c | 237 inode->i_uid = server->m.uid; in ncp_set_attr() 335 if (!uid_eq(server->m.uid, GLOBAL_ROOT_UID)) in ncp_show_options() 337 from_kuid_munged(&init_user_ns, server->m.uid)); in ncp_show_options() 393 data->uid = GLOBAL_ROOT_UID; in ncp_parse_options() 406 data->uid = make_kuid(current_user_ns(), optint); in ncp_parse_options() 407 if (!uid_valid(data->uid)) { in ncp_parse_options() 502 data.uid = make_kuid(current_user_ns(), md->uid); in ncp_fill_super() 521 data.uid = make_kuid(current_user_ns(), md->uid); in ncp_fill_super() 538 if (!uid_valid(data.mounted_uid) || !uid_valid(data.uid) || in ncp_fill_super() 892 if ((attr->ia_valid & ATTR_UID) && !uid_eq(attr->ia_uid, server->m.uid)) in ncp_notify_change()
|
D | ioctl.c | 348 u16 uid; in __ncp_ioctl() local 350 SET_UID(uid, from_kuid_munged(current_user_ns(), server->m.mounted_uid)); in __ncp_ioctl() 351 if (put_user(uid, (u16 __user *)argp)) in __ncp_ioctl() 357 uid_t uid = from_kuid_munged(current_user_ns(), server->m.mounted_uid); in __ncp_ioctl() local 358 if (put_user(uid, (u32 __user *)argp)) in __ncp_ioctl() 364 uid_t uid = from_kuid_munged(current_user_ns(), server->m.mounted_uid); in __ncp_ioctl() local 365 if (put_user(uid, (u64 __user *)argp)) in __ncp_ioctl() 816 kuid_t uid = current_uid(); in ncp_ioctl() local 830 if (!uid_eq(server->m.mounted_uid, uid)) { in ncp_ioctl()
|
/fs/befs/ |
D | linuxvfs.c | 347 befs_sb->mount_opts.uid : in befs_iget() 348 make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid)); in befs_iget() 660 kuid_t uid; in parse_options() local 664 opts->uid = GLOBAL_ROOT_UID; in parse_options() 684 uid = INVALID_UID; in parse_options() 686 uid = make_kuid(current_user_ns(), option); in parse_options() 687 if (!uid_valid(uid)) { in parse_options() 692 opts->uid = uid; in parse_options()
|
/fs/xfs/ |
D | xfs_linux.h | 187 static inline __uint32_t xfs_kuid_to_uid(kuid_t uid) in xfs_kuid_to_uid() argument 189 return from_kuid(&init_user_ns, uid); in xfs_kuid_to_uid() 192 static inline kuid_t xfs_uid_to_kuid(__uint32_t uid) in xfs_uid_to_kuid() argument 194 return make_kuid(&init_user_ns, uid); in xfs_uid_to_kuid()
|
D | xfs_iops.c | 459 stat->uid = inode->i_uid; in xfs_vn_getattr() 548 kuid_t uid = GLOBAL_ROOT_UID, iuid = GLOBAL_ROOT_UID; in xfs_setattr_nonsize() local 582 uid = iattr->ia_uid; in xfs_setattr_nonsize() 585 uid = inode->i_uid; in xfs_setattr_nonsize() 601 error = xfs_qm_vop_dqalloc(ip, xfs_kuid_to_uid(uid), in xfs_setattr_nonsize() 629 uid = (mask & ATTR_UID) ? iattr->ia_uid : iuid; in xfs_setattr_nonsize() 636 ((XFS_IS_UQUOTA_ON(mp) && !uid_eq(iuid, uid)) || in xfs_setattr_nonsize() 667 if (!uid_eq(iuid, uid)) { in xfs_setattr_nonsize() 674 ip->i_d.di_uid = xfs_kuid_to_uid(uid); in xfs_setattr_nonsize() 675 inode->i_uid = uid; in xfs_setattr_nonsize()
|
/fs/ |
D | fcntl.c | 94 filp->f_owner.uid = cred->uid; in f_modown() 231 src[0] = from_kuid(user_ns, filp->f_owner.uid); in f_getowner_uids() 445 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm() 446 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
|
/fs/cifs/ |
D | cifsacl.c | 307 kuid_t uid; in sid_to_id() local 310 uid = make_kuid(&init_user_ns, id); in sid_to_id() 311 if (uid_valid(uid)) in sid_to_id() 312 fuid = uid; in sid_to_id() 789 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, int *aclflag) in build_sec_desc() argument 821 if (uid_valid(uid)) { /* chown */ in build_sec_desc() 829 id = from_kuid(&init_user_ns, uid); in build_sec_desc() 1052 kuid_t uid, kgid_t gid) in id_mode_to_cifs_acl() argument 1099 rc = build_sec_desc(pntsd, pnntsd, secdesclen, nmode, uid, gid, in id_mode_to_cifs_acl()
|
/fs/nfs_common/ |
D | nfsacl.c | 38 kuid_t uid; member 60 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); in xdr_nfsace_encode() 103 .uid = inode->i_uid, in nfsacl_encode()
|