/Linux-v4.19/include/linux/ |
D | user_namespace.h | 55 struct user_namespace { struct 60 struct user_namespace *parent; argument 83 struct user_namespace *ns; argument 89 extern struct user_namespace init_user_ns; 91 bool setup_userns_sysctls(struct user_namespace *ns); 92 void retire_userns_sysctls(struct user_namespace *ns); 93 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); 98 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns() 107 extern void __put_user_ns(struct user_namespace *ns); 109 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns() [all …]
|
D | uidgid.h | 18 struct user_namespace; 19 extern struct user_namespace init_user_ns; 123 extern kuid_t make_kuid(struct user_namespace *from, uid_t uid); 124 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid); 126 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid); 127 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid); 128 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid); 129 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid); 131 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() 136 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() [all …]
|
D | projid.h | 17 struct user_namespace; 18 extern struct user_namespace init_user_ns; 53 extern kprojid_t make_kprojid(struct user_namespace *from, projid_t projid); 55 extern projid_t from_kprojid(struct user_namespace *to, kprojid_t projid); 56 extern projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t projid); 58 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping() 65 static inline kprojid_t make_kprojid(struct user_namespace *from, projid_t projid) in make_kprojid() 70 static inline projid_t from_kprojid(struct user_namespace *to, kprojid_t kprojid) in from_kprojid() 75 static inline projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t kprojid) in from_kprojid_munged() 83 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping()
|
D | capability.h | 43 struct user_namespace; 205 struct user_namespace *ns, int cap); 208 struct user_namespace *ns, int cap); 210 extern bool ns_capable(struct user_namespace *ns, int cap); 211 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap); 218 struct user_namespace *ns, int cap) in has_ns_capability() 227 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() 235 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() 239 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit() 244 extern bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode); [all …]
|
D | utsname.h | 21 struct user_namespace; 22 extern struct user_namespace init_user_ns; 27 struct user_namespace *user_ns; 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()
|
D | ipc_namespace.h | 14 struct user_namespace; 67 struct user_namespace *user_ns; 123 struct user_namespace *user_ns, struct ipc_namespace *ns); 135 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
|
D | pid_namespace.h | 41 struct user_namespace *user_ns; 63 struct user_namespace *user_ns, struct pid_namespace *ns); 77 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns()
|
D | mnt_namespace.h | 8 struct user_namespace; 11 struct user_namespace *, struct fs_struct *);
|
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()
|
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 | 46 struct user_namespace *user_ns, 67 struct user_namespace *user_ns, bool net_admin);
|
D | quota.h | 79 extern qid_t from_kqid(struct user_namespace *to, struct kqid qid); 80 extern qid_t from_kqid_munged(struct user_namespace *to, struct kqid qid); 97 static inline struct kqid make_kqid(struct user_namespace *from, in make_kqid() 187 static inline bool qid_has_mapping(struct user_namespace *ns, struct kqid qid) in qid_has_mapping()
|
D | cred.h | 151 struct user_namespace *user_ns; /* user_ns the caps and keyrings are relative to. */ 374 extern struct user_namespace init_user_ns; 378 static inline struct user_namespace *current_user_ns(void) in current_user_ns()
|
/Linux-v4.19/kernel/ |
D | user_namespace.c | 33 struct user_namespace *ns, int cap_setid, 37 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces() 47 static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns) in set_cred_user_ns() 76 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() 180 struct user_namespace *parent, *ns = in free_user_ns() 181 container_of(work, struct user_namespace, work); in free_user_ns() 209 void __put_user_ns(struct user_namespace *ns) in __put_user_ns() 392 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid() 411 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid() 436 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged() [all …]
|
D | capability.c | 297 struct user_namespace *ns, int cap) in has_ns_capability() 338 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() 366 static bool ns_capable_common(struct user_namespace *ns, int cap, bool audit) in ns_capable_common() 395 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() 413 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit() 448 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() 468 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode) in privileged_wrt_inode_uidgid() 485 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid() 499 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) in ptracer_capable()
|
D | ucount.c | 42 struct user_namespace *user_ns = in set_permissions() 43 container_of(head->set, struct user_namespace, set); in set_permissions() 87 bool setup_userns_sysctls(struct user_namespace *ns) in setup_userns_sysctls() 109 void retire_userns_sysctls(struct user_namespace *ns) in retire_userns_sysctls() 121 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashe… in find_ucounts() 132 static struct ucounts *get_ucounts(struct user_namespace *ns, kuid_t uid) in get_ucounts() 196 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, in inc_ucount() 200 struct user_namespace *tns; in inc_ucount()
|
D | utsname.c | 24 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces() 49 static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns, in clone_uts_ns() 94 struct user_namespace *user_ns, struct uts_namespace *old_ns) in copy_utsname() 161 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
|
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()
|
/Linux-v4.19/security/keys/ |
D | persistent.c | 24 static int key_create_persistent_register(struct user_namespace *ns) in key_create_persistent_register() 44 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, in key_create_persistent() 77 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, in key_get_persistent() 133 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
|
D | proc.c | 71 struct user_namespace *user_ns = seq_user_ns(p); in key_serial_next() 85 struct user_namespace *user_ns = seq_user_ns(p); in find_ge_key() 253 static struct rb_node *__key_user_next(struct user_namespace *user_ns, struct rb_node *n) in __key_user_next() 264 static struct rb_node *key_user_next(struct user_namespace *user_ns, struct rb_node *n) in key_user_next() 269 static struct rb_node *key_user_first(struct user_namespace *user_ns, struct rb_root *r) in key_user_first()
|
/Linux-v4.19/ipc/ |
D | namespace.c | 22 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces() 32 static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns, in create_ipc_ns() 80 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() 194 static struct user_namespace *ipcns_owner(struct ns_common *ns) in ipcns_owner()
|
/Linux-v4.19/kernel/cgroup/ |
D | namespace.c | 12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces() 51 struct user_namespace *user_ns, in copy_cgroup_ns() 138 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
|
/Linux-v4.19/include/net/ |
D | net_namespace.h | 38 struct user_namespace; 71 struct user_namespace *user_ns; /* Owning user namespace */ 171 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns, 181 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
|
/Linux-v4.19/fs/quota/ |
D | kqid.c | 68 qid_t from_kqid(struct user_namespace *targ, struct kqid kqid) in from_kqid() 101 qid_t from_kqid_munged(struct user_namespace *targ, struct kqid kqid) in from_kqid_munged()
|
/Linux-v4.19/security/ |
D | commoncap.c | 71 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable() 74 struct user_namespace *ns = targ_ns; in cap_capable() 331 struct user_namespace *ns; in rootid_owns_currentns() 386 struct user_namespace *fs_ns; in cap_inode_getsecurity() 461 struct user_namespace *task_ns) in rootid_from_xattr() 490 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap() 587 struct user_namespace *fs_ns; in get_vfs_caps_from_disk() 922 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_setxattr() 954 struct user_namespace *user_ns = dentry->d_sb->s_user_ns; in cap_inode_removexattr()
|