/linux-4.19.296/include/linux/ |
D | utsname.h | 27 struct user_namespace *user_ns; member 40 struct user_namespace *user_ns, struct uts_namespace *old_ns); 59 struct user_namespace *user_ns, struct uts_namespace *old_ns) in copy_utsname() argument
|
D | pid_namespace.h | 41 struct user_namespace *user_ns; member 63 struct user_namespace *user_ns, struct pid_namespace *ns); 77 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns() argument
|
D | ipc_namespace.h | 67 struct user_namespace *user_ns; member 123 struct user_namespace *user_ns, struct ipc_namespace *ns); 145 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() argument
|
D | tsacct_kern.h | 14 extern void bacct_add_tsk(struct user_namespace *user_ns, 18 static inline void bacct_add_tsk(struct user_namespace *user_ns, in bacct_add_tsk() argument
|
D | posix_acl_xattr.h | 47 struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns, 49 int posix_acl_to_xattr(struct user_namespace *user_ns,
|
D | inet_diag.h | 41 struct user_namespace *user_ns, 73 struct user_namespace *user_ns, bool net_admin);
|
D | cred.h | 151 struct user_namespace *user_ns; /* user_ns the caps and keyrings are relative to. */ member 385 #define current_user_ns() (current_cred_xxx(user_ns))
|
D | cgroup.h | 848 struct user_namespace *user_ns; member 860 struct user_namespace *user_ns, 870 copy_cgroup_ns(unsigned long flags, struct user_namespace *user_ns, in copy_cgroup_ns() argument
|
/linux-4.19.296/fs/ |
D | posix_acl.c | 209 posix_acl_valid(struct user_namespace *user_ns, const struct posix_acl *acl) in posix_acl_valid() argument 229 if (!kuid_has_mapping(user_ns, pa->e_uid)) in posix_acl_valid() 244 if (!kgid_has_mapping(user_ns, pa->e_gid)) in posix_acl_valid() 706 struct user_namespace *user_ns = current_user_ns(); in posix_acl_fix_xattr_from_user() local 707 if (user_ns == &init_user_ns) in posix_acl_fix_xattr_from_user() 709 posix_acl_fix_xattr_userns(&init_user_ns, user_ns, value, size); in posix_acl_fix_xattr_from_user() 714 struct user_namespace *user_ns = current_user_ns(); in posix_acl_fix_xattr_to_user() local 715 if (user_ns == &init_user_ns) in posix_acl_fix_xattr_to_user() 717 posix_acl_fix_xattr_userns(user_ns, &init_user_ns, value, size); in posix_acl_fix_xattr_to_user() 724 posix_acl_from_xattr(struct user_namespace *user_ns, in posix_acl_from_xattr() argument [all …]
|
D | super.c | 198 struct user_namespace *user_ns) in alloc_super() argument 208 s->s_user_ns = get_user_ns(user_ns); in alloc_super() 489 int flags, struct user_namespace *user_ns, in sget_userns() argument 506 if (user_ns != old->s_user_ns) { in sget_userns() 519 s = alloc_super(type, (flags & ~SB_SUBMOUNT), user_ns); in sget_userns() 557 struct user_namespace *user_ns = current_user_ns(); in sget() local 564 user_ns = &init_user_ns; in sget() 567 if (!(flags & (SB_KERNMOUNT|SB_SUBMOUNT)) && !ns_capable(user_ns, CAP_SYS_ADMIN)) in sget() 570 return sget_userns(type, test, set, flags, user_ns, data); in sget() 1057 int flags, void *data, void *ns, struct user_namespace *user_ns, in mount_ns() argument [all …]
|
D | pnode.c | 216 static struct user_namespace *user_ns; variable 263 if (m->mnt_ns->user_ns != user_ns) in propagate_one() 304 user_ns = current->nsproxy->mnt_ns->user_ns; in propagate_mnt()
|
D | nsfs.c | 191 struct user_namespace *user_ns; in ns_ioctl() local 208 user_ns = container_of(ns, struct user_namespace, ns); in ns_ioctl() 210 uid = from_kuid_munged(current_user_ns(), user_ns->owner); in ns_ioctl()
|
D | exec.c | 1327 struct user_namespace *old, *user_ns; in would_dump() local 1331 user_ns = old = bprm->mm->user_ns; in would_dump() 1332 while ((user_ns != &init_user_ns) && in would_dump() 1333 !privileged_wrt_inode_uidgid(user_ns, inode)) in would_dump() 1334 user_ns = user_ns->parent; in would_dump() 1336 if (old != user_ns) { in would_dump() 1337 bprm->mm->user_ns = get_user_ns(user_ns); in would_dump() 1561 if (!kuid_has_mapping(bprm->cred->user_ns, uid) || in bprm_fill_uid() 1562 !kgid_has_mapping(bprm->cred->user_ns, gid)) in bprm_fill_uid()
|
D | mount.h | 13 struct user_namespace *user_ns; member
|
D | namespace.c | 1610 return ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN); in may_mount() 2846 put_user_ns(ns->user_ns); in free_mnt_ns() 2859 static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns) in alloc_mnt_ns() argument 2865 ucounts = inc_mnt_namespaces(user_ns); in alloc_mnt_ns() 2887 new_ns->user_ns = get_user_ns(user_ns); in alloc_mnt_ns() 2896 struct user_namespace *user_ns, struct fs_struct *new_fs) in copy_mnt_ns() argument 2914 new_ns = alloc_mnt_ns(user_ns); in copy_mnt_ns() 2921 if (user_ns != ns->user_ns) in copy_mnt_ns() 3402 if (ns->user_ns == &init_user_ns) in mount_too_revealing() 3460 if (!ns_capable(mnt_ns->user_ns, CAP_SYS_ADMIN) || in mntns_install() [all …]
|
D | binfmt_elf_fdpic.c | 656 NEW_AUX_ENT(AT_UID, (elf_addr_t) from_kuid_munged(cred->user_ns, cred->uid)); in create_elf_fdpic_tables() 657 NEW_AUX_ENT(AT_EUID, (elf_addr_t) from_kuid_munged(cred->user_ns, cred->euid)); in create_elf_fdpic_tables() 658 NEW_AUX_ENT(AT_GID, (elf_addr_t) from_kgid_munged(cred->user_ns, cred->gid)); in create_elf_fdpic_tables() 659 NEW_AUX_ENT(AT_EGID, (elf_addr_t) from_kgid_munged(cred->user_ns, cred->egid)); in create_elf_fdpic_tables() 1417 SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid)); in fill_psinfo() 1418 SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid)); in fill_psinfo()
|
/linux-4.19.296/fs/proc/ |
D | array.c | 155 struct user_namespace *user_ns = seq_user_ns(m); in task_state() local 193 seq_put_decimal_ull(m, "\nUid:\t", from_kuid_munged(user_ns, cred->uid)); in task_state() 194 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->euid)); in task_state() 195 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->suid)); in task_state() 196 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->fsuid)); in task_state() 197 seq_put_decimal_ull(m, "\nGid:\t", from_kgid_munged(user_ns, cred->gid)); in task_state() 198 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->egid)); in task_state() 199 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->sgid)); in task_state() 200 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->fsgid)); in task_state() 207 from_kgid_munged(user_ns, group_info->gid[g])); in task_state()
|
D | proc_net.c | 335 uid = make_kuid(net->user_ns, 0); in proc_net_ns_init() 339 gid = make_kgid(net->user_ns, 0); in proc_net_ns_init()
|
D | root.c | 101 return mount_ns(fs_type, flags, data, ns, ns->user_ns, proc_fill_super); in proc_mount()
|
/linux-4.19.296/fs/fuse/ |
D | acl.c | 40 acl = posix_acl_from_xattr(fc->user_ns, value, size); in fuse_get_acl() 90 ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); in fuse_set_acl()
|
D | inode.c | 174 inode->i_uid = make_kuid(fc->user_ns, attr->uid); in fuse_change_attributes_common() 175 inode->i_gid = make_kgid(fc->user_ns, attr->gid); in fuse_change_attributes_common() 490 struct user_namespace *user_ns) in parse_fuse_opt() argument 526 d->user_id = make_kuid(user_ns, uv); in parse_fuse_opt() 535 d->group_id = make_kgid(user_ns, uv); in parse_fuse_opt() 578 seq_printf(m, ",user_id=%u", from_kuid_munged(fc->user_ns, fc->user_id)); in fuse_show_options() 579 seq_printf(m, ",group_id=%u", from_kgid_munged(fc->user_ns, fc->group_id)); in fuse_show_options() 611 void fuse_conn_init(struct fuse_conn *fc, struct user_namespace *user_ns) in fuse_conn_init() argument 635 fc->user_ns = get_user_ns(user_ns); in fuse_conn_init() 645 put_user_ns(fc->user_ns); in fuse_conn_put() [all …]
|
D | fuse_i.h | 478 struct user_namespace *user_ns; member 902 void fuse_conn_init(struct fuse_conn *fc, struct user_namespace *user_ns);
|
/linux-4.19.296/include/net/ |
D | net_namespace.h | 72 struct user_namespace *user_ns; /* Owning user namespace */ member 172 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns, 184 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument
|
/linux-4.19.296/fs/autofs/ |
D | waitq.c | 141 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns; in autofs_notify_daemon() local 151 packet->uid = from_kuid_munged(user_ns, wq->uid); in autofs_notify_daemon() 152 packet->gid = from_kgid_munged(user_ns, wq->gid); in autofs_notify_daemon()
|
/linux-4.19.296/lib/ |
D | kobject_uevent.c | 346 struct user_namespace *owning_user_ns = sock_net(usk)->user_ns; in uevent_net_broadcast_tagged() 738 if (!netlink_ns_capable(skb, net->user_ns, CAP_SYS_ADMIN)) { in uevent_net_rcv_skb() 779 if (sock_net(ue_sk->sk)->user_ns == &init_user_ns) { in uevent_net_init() 792 if (sock_net(ue_sk->sk)->user_ns == &init_user_ns) { in uevent_net_exit()
|