| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | uid16.c | 117 struct user_namespace *user_ns = current_user_ns(); in groups16_to_user() 135 struct user_namespace *user_ns = current_user_ns(); in groups16_from_user() 205 return high2lowuid(from_kuid_munged(current_user_ns(), current_uid())); in SYSCALL_DEFINE0() 210 return high2lowuid(from_kuid_munged(current_user_ns(), current_euid())); in SYSCALL_DEFINE0() 215 return high2lowgid(from_kgid_munged(current_user_ns(), current_gid())); in SYSCALL_DEFINE0() 220 return high2lowgid(from_kgid_munged(current_user_ns(), current_egid())); in SYSCALL_DEFINE0()
|
| H A D | groups.c | 45 struct user_namespace *user_ns = current_user_ns(); in groups_to_user() 62 struct user_namespace *user_ns = current_user_ns(); in groups_from_user() 179 struct user_namespace *user_ns = current_user_ns(); in may_setgroups()
|
| H A D | ucount.c | 26 return ¤t_user_ns()->set; in set_lookup() 31 return ¤t_user_ns()->set == set; in set_is_seen()
|
| H A D | sys.c | 363 struct user_namespace *ns = current_user_ns(); in __sys_setregid() 429 struct user_namespace *ns = current_user_ns(); in __sys_setgid() 514 struct user_namespace *ns = current_user_ns(); in __sys_setreuid() 590 struct user_namespace *ns = current_user_ns(); in __sys_setuid() 642 struct user_namespace *ns = current_user_ns(); in __sys_setresuid() 734 struct user_namespace *ns = current_user_ns(); in __sys_setresgid() 946 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0() 952 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0() 958 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0() 964 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0() [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | stat.c | 248 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat() 249 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat() 335 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat() 336 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat() 479 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64() 480 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64() 552 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx() 553 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx() 632 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat() 633 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
|
| /OK3568_Linux_fs/kernel/ipc/ |
| H A D | util.c | 556 out->uid = from_kuid_munged(current_user_ns(), in->uid); in kernel_to_ipc64_perm() 557 out->gid = from_kgid_munged(current_user_ns(), in->gid); in kernel_to_ipc64_perm() 558 out->cuid = from_kuid_munged(current_user_ns(), in->cuid); in kernel_to_ipc64_perm() 559 out->cgid = from_kgid_munged(current_user_ns(), in->cgid); in kernel_to_ipc64_perm() 655 kuid_t uid = make_kuid(current_user_ns(), in->uid); in ipc_update_perm() 656 kgid_t gid = make_kgid(current_user_ns(), in->gid); in ipc_update_perm()
|
| /OK3568_Linux_fs/kernel/fs/quota/ |
| H A D | quota.c | 39 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission() 40 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission() 208 qid = make_kqid(current_user_ns(), type, id); in quota_getquota() 244 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota() 252 idq.dqb_id = from_kqid(current_user_ns(), qid); in quota_getnextquota() 303 qid = make_kqid(current_user_ns(), type, id); in quota_setquota() 631 qid = make_kqid(current_user_ns(), type, id); in quota_setxquota() 711 qid = make_kqid(current_user_ns(), type, id); in quota_getxquota() 738 qid = make_kqid(current_user_ns(), type, id); in quota_getnextxquota() 744 id_out = from_kqid(current_user_ns(), qid); in quota_getnextxquota()
|
| /OK3568_Linux_fs/kernel/net/ax25/ |
| H A D | ax25_uid.c | 81 res = from_kuid_munged(current_user_ns(), ax25_uid->uid); in ax25_uid_ioctl() 94 sax25_kuid = make_kuid(current_user_ns(), sax->sax25_uid); in ax25_uid_ioctl()
|
| /OK3568_Linux_fs/kernel/fs/hfsplus/ |
| H A D | options.c | 139 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp); in hfsplus_parse_options() 150 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options()
|
| /OK3568_Linux_fs/kernel/block/ |
| H A D | ioprio.c | 136 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3() 231 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | cred.h | 392 #define current_user_ns() (current_cred_xxx(user_ns)) macro 394 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | sys_ia32.c | 136 SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_stat64() 137 SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_stat64()
|
| /OK3568_Linux_fs/kernel/drivers/misc/ |
| H A D | uid_sys_stats.c | 335 struct user_namespace *user_ns = current_user_ns(); in uid_cputime_show() 472 struct user_namespace *user_ns = current_user_ns(); in update_io_stats_all_locked() 505 struct user_namespace *user_ns = current_user_ns(); in update_io_stats_uid_locked() 637 uid = from_kuid_munged(current_user_ns(), task_uid(task)); in process_notifier()
|
| /OK3568_Linux_fs/kernel/fs/9p/ |
| H A D | v9fs.c | 218 v9ses->dfltuid = make_kuid(current_user_ns(), option); in v9fs_parse_options() 233 v9ses->dfltgid = make_kgid(current_user_ns(), option); in v9fs_parse_options() 332 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options()
|
| /OK3568_Linux_fs/kernel/arch/sparc/kernel/ |
| H A D | sys_sparc32.c | 73 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64() 74 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64()
|
| /OK3568_Linux_fs/kernel/arch/s390/kernel/ |
| H A D | compat_linux.c | 137 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_stat64() 138 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_stat64()
|
| /OK3568_Linux_fs/kernel/fs/proc/ |
| H A D | root.c | 174 proc_apply_options(fs_info, fc, current_user_ns()); in proc_fill_super() 223 proc_apply_options(fs_info, fc, current_user_ns()); in proc_reconfigure()
|
| /OK3568_Linux_fs/kernel/fs/autofs/ |
| H A D | inode.c | 169 uid = make_kuid(current_user_ns(), option); in parse_options() 177 gid = make_kgid(current_user_ns(), option); in parse_options()
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | scm.c | 186 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send() 187 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()
|
| H A D | fib_rules.c | 223 out.start = make_kuid(current_user_ns(), in->start); in nla_get_kuid_range() 224 out.end = make_kuid(current_user_ns(), in->end); in nla_get_kuid_range() 232 from_kuid_munged(current_user_ns(), range->start), in nla_put_uid_range() 233 from_kuid_munged(current_user_ns(), range->end) in nla_put_uid_range() 638 if (current_user_ns() != net->user_ns) { in fib_nl2rule()
|
| /OK3568_Linux_fs/kernel/security/ |
| H A D | commoncap.c | 330 for (ns = current_user_ns(); ; ns = ns->parent) { in rootid_owns_currentns() 416 mappedroot = from_kuid(current_user_ns(), kroot); in cap_inode_getsecurity() 505 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap() 1168 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
|
| /OK3568_Linux_fs/kernel/fs/hfs/ |
| H A D | super.c | 254 hsb->s_uid = make_kuid(current_user_ns(), (uid_t)tmp); in parse_options() 265 hsb->s_gid = make_kgid(current_user_ns(), (gid_t)tmp); in parse_options()
|
| /OK3568_Linux_fs/kernel/fs/vboxsf/ |
| H A D | super.c | 76 uid = make_kuid(current_user_ns(), result.uint_32); in vboxsf_parse_param() 82 gid = make_kgid(current_user_ns(), result.uint_32); in vboxsf_parse_param()
|
| /OK3568_Linux_fs/kernel/arch/arm/kernel/ |
| H A D | sys_oabi-compat.c | 125 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_oldabi_stat64() 126 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_oldabi_stat64()
|
| /OK3568_Linux_fs/kernel/fs/adfs/ |
| H A D | super.c | 149 asb->s_uid = make_kuid(current_user_ns(), option); in parse_options() 156 asb->s_gid = make_kgid(current_user_ns(), option); in parse_options()
|