/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->d_name.name, 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 | 263 uid_t uid; in v9fs_parse_options() local 265 uid = simple_strtoul(s, &e, 10); in v9fs_parse_options() 273 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options() 274 if (!uid_valid(v9ses->uid)) { in v9fs_parse_options() 342 v9ses->uid = INVALID_UID; in v9fs_session_init() 387 v9ses->uid = INVALID_UID; in v9fs_session_init() 408 fid->uid = v9ses->uid; in v9fs_session_init() 410 fid->uid = INVALID_UID; in v9fs_session_init()
|
/fs/ |
D | ioprio.c | 40 if (!uid_eq(tcred->uid, cred->euid) && in set_task_ioprio() 41 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { in set_task_ioprio() 68 kuid_t uid; in SYSCALL_DEFINE3() local 114 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3() 115 if (!uid_valid(uid)) in SYSCALL_DEFINE3() 120 user = find_user(uid); in SYSCALL_DEFINE3() 126 if (!uid_eq(task_uid(p), uid)) in SYSCALL_DEFINE3() 183 kuid_t uid; in SYSCALL_DEFINE2() local 213 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2() 217 user = find_user(uid); in SYSCALL_DEFINE2() [all …]
|
D | fcntl.c | 94 filp->f_owner.uid = cred->uid; in f_modown() 235 src[0] = from_kuid(user_ns, filp->f_owner.uid); in f_getowner_uids() 431 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm() 432 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
|
D | xattr_acl.c | 24 kuid_t uid; in posix_acl_fix_xattr_userns() local 43 uid = make_kuid(from, le32_to_cpu(entry->e_id)); in posix_acl_fix_xattr_userns() 44 entry->e_id = cpu_to_le32(from_kuid(to, uid)); in posix_acl_fix_xattr_userns()
|
/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 | 40 uid_t uid, bool under_android, in setup_derived_state() argument 47 info->data->d_uid = uid; in setup_derived_state() 174 uid_t uid = sbi->options.fs_low_uid; in fixup_lower_ownership() local 201 uid = multiuser_get_uid(info_d->userid, uid); in fixup_lower_ownership() 204 uid = AID_MEDIA_OBB; in fixup_lower_ownership() 242 if (path.dentry->d_inode->i_gid != gid || path.dentry->d_inode->i_uid != 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 | 277 __le16 uid; member 286 __le16 uid; member 296 __le16 uid; member 307 __le16 uid; member 318 __le16 uid; member 330 __le16 uid; member 342 __le16 uid; member 356 __le16 uid; member 373 __le16 uid; member 387 __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); 28 kuid_t uid, kgid_t gid);
|
/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 204 *uid = current_uid(); in parse_options() 269 *uid = make_kuid(current_user_ns(), option); in parse_options() 270 if (!uid_valid(*uid)) in parse_options() 313 kuid_t uid; in affs_fill_super() local 340 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, in affs_fill_super() 352 sbi->s_uid = uid; in affs_fill_super() 539 kuid_t uid; in affs_remount() local 556 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, in affs_remount() 569 sbi->s_uid = uid; in affs_remount()
|
D | inode.c | 79 id = be16_to_cpu(tail->uid); in affs_iget() 175 uid_t uid; in affs_write_inode() local 196 uid = i_uid_read(inode); in affs_write_inode() 199 if (uid == 0 || uid == 0xFFFF) in affs_write_inode() 200 uid = uid ^ ~0; in affs_write_inode() 205 tail->uid = cpu_to_be16(uid); 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 284 *uid = make_kuid(current_user_ns(), option); in parse_opts() 285 if (!uid_valid(*uid)) in parse_opts() 390 kuid_t uid; 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() 466 kuid_t uid; in hpfs_fill_super() local 491 uid = current_uid(); in hpfs_fill_super() 501 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, in hpfs_fill_super() [all …]
|
/fs/devpts/ |
D | inode.c | 101 kuid_t uid; member 161 kuid_t uid; in parse_mount_options() local 166 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options() 189 uid = make_kuid(current_user_ns(), option); in parse_mount_options() 190 if (!uid_valid(uid)) in parse_mount_options() 192 opts->uid = uid; in parse_mount_options() 336 seq_printf(seq, ",uid=%u", from_kuid_munged(&init_user_ns, opts->uid)); in devpts_show_options() 592 inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); in devpts_pty_new()
|
/fs/debugfs/ |
D | inode.c | 130 kuid_t uid; member 158 kuid_t uid; in debugfs_parse_options() local 173 uid = make_kuid(current_user_ns(), option); in debugfs_parse_options() 174 if (!uid_valid(uid)) in debugfs_parse_options() 176 opts->uid = uid; in debugfs_parse_options() 210 inode->i_uid = opts->uid; in debugfs_apply_options() 237 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in debugfs_show_options() 239 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() 226 from_kuid_munged(&init_user_ns, sbi->uid), in hfsplus_show_options()
|
/fs/autofs4/ |
D | inode.c | 39 ino->uid = GLOBAL_ROOT_UID; in autofs4_clean_ino() 131 static int parse_options(char *options, int *pipefd, kuid_t *uid, kgid_t *gid, in parse_options() argument 138 *uid = current_uid(); in parse_options() 164 *uid = make_kuid(current_user_ns(), option); in parse_options() 165 if (!uid_valid(*uid)) in parse_options()
|
/fs/nfs/ |
D | idmap.c | 100 kuid_t uid; in nfs_fattr_map_owner_name() local 104 if (nfs_map_name_to_uid(server, owner->data, owner->len, &uid) == 0) { in nfs_fattr_map_owner_name() 105 fattr->uid = uid; in nfs_fattr_map_owner_name() 843 …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 852 *uid = make_kuid(&init_user_ns, id); in nfs_map_name_to_uid() 853 if (!uid_valid(*uid)) in nfs_map_name_to_uid() 875 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 881 id = from_kuid(&init_user_ns, uid); in nfs_map_uid_to_name()
|
/fs/ncpfs/ |
D | inode.c | 236 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() 498 data.uid = make_kuid(current_user_ns(), md->uid); in ncp_fill_super() 517 data.uid = make_kuid(current_user_ns(), md->uid); in ncp_fill_super() 534 if (!uid_valid(data.mounted_uid) || !uid_valid(data.uid) || in ncp_fill_super() 903 if ((attr->ia_valid & ATTR_UID) && !uid_eq(attr->ia_uid, server->m.uid)) in ncp_notify_change()
|
D | ioctl.c | 349 u16 uid; in __ncp_ioctl() local 351 SET_UID(uid, from_kuid_munged(current_user_ns(), server->m.mounted_uid)); in __ncp_ioctl() 352 if (put_user(uid, (u16 __user *)argp)) in __ncp_ioctl() 358 uid_t uid = from_kuid_munged(current_user_ns(), server->m.mounted_uid); in __ncp_ioctl() local 359 if (put_user(uid, (u32 __user *)argp)) in __ncp_ioctl() 365 uid_t uid = from_kuid_munged(current_user_ns(), server->m.mounted_uid); in __ncp_ioctl() local 366 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 | 356 befs_sb->mount_opts.uid : in befs_iget() 357 make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid)); in befs_iget() 685 kuid_t uid; in parse_options() local 689 opts->uid = GLOBAL_ROOT_UID; in parse_options() 709 uid = INVALID_UID; in parse_options() 711 uid = make_kuid(current_user_ns(), option); in parse_options() 712 if (!uid_valid(uid)) { in parse_options() 717 opts->uid = uid; in parse_options()
|
/fs/cifs/ |
D | README | 119 must be a cifs mount, and the uid of the current user must match the uid 133 Note that uid, gid and file permissions will display default values if you do 265 forceuid Set the default uid for inodes to the uid 269 the uid, gid and mode so this parameter should not be 270 specified unless the server and clients uid and gid 273 the server supports the Unix Extensions then the uid 274 and gid can be retrieved from the server (and uid 277 extensions, the default uid (and gid) returned on lookup 278 of existing files will be the uid (gid) of the person 280 is configured setuid for user mounts) unless the "uid=" [all …]
|
D | cifsacl.c | 309 kuid_t uid; in sid_to_id() local 312 uid = make_kuid(&init_user_ns, id); in sid_to_id() 313 if (uid_valid(uid)) in sid_to_id() 314 fuid = uid; in sid_to_id() 791 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, int *aclflag) in build_sec_desc() argument 823 if (uid_valid(uid)) { /* chown */ in build_sec_desc() 831 id = from_kuid(&init_user_ns, uid); 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/xfs/ |
D | xfs_iops.c | 423 stat->uid = ip->i_d.di_uid; in xfs_vn_getattr() 491 uid_t uid = 0, iuid = 0; in xfs_setattr_nonsize() local 522 uid = iattr->ia_uid; in xfs_setattr_nonsize() 525 uid = ip->i_d.di_uid; in xfs_setattr_nonsize() 541 error = xfs_qm_vop_dqalloc(ip, uid, gid, xfs_get_projid(ip), in xfs_setattr_nonsize() 567 uid = (mask & ATTR_UID) ? iattr->ia_uid : iuid; in xfs_setattr_nonsize() 574 ((XFS_IS_UQUOTA_ON(mp) && iuid != uid) || in xfs_setattr_nonsize() 605 if (iuid != uid) { in xfs_setattr_nonsize() 612 ip->i_d.di_uid = uid; in xfs_setattr_nonsize() 613 inode->i_uid = uid; in xfs_setattr_nonsize()
|
/fs/jfs/ |
D | super.c | 324 char *uid = args[0].from; in parse_options() local 325 uid_t val = simple_strtoul(uid, &uid, 0); in parse_options() 326 sbi->uid = make_kuid(current_user_ns(), val); in parse_options() 327 if (!uid_valid(sbi->uid)) in parse_options() 492 sbi->uid = INVALID_UID; in jfs_fill_super() 690 if (uid_valid(sbi->uid)) in jfs_show_options() 691 seq_printf(seq, ",uid=%d", from_kuid(&init_user_ns, sbi->uid)); in jfs_show_options()
|