| /include/linux/ |
| D | user_namespace.h | 75 struct user_namespace { struct 79 struct user_namespace *parent; argument 122 struct user_namespace *ns; argument 129 extern struct user_namespace init_user_ns; 132 bool setup_userns_sysctls(struct user_namespace *ns); 133 void retire_userns_sysctls(struct user_namespace *ns); 134 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); 136 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid); 152 static inline long get_userns_rlimit_max(struct user_namespace *ns, enum rlimit_type type) in get_userns_rlimit_max() 157 static inline void set_userns_rlimit_max(struct user_namespace *ns, in set_userns_rlimit_max() [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 | uidgid.h | 18 struct user_namespace; 19 extern struct user_namespace init_user_ns; 115 extern kuid_t make_kuid(struct user_namespace *from, uid_t uid); 116 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid); 118 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid); 119 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid); 120 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid); 121 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid); 123 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() 128 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() [all …]
|
| D | capability.h | 41 struct user_namespace; 144 struct user_namespace *ns, int cap); 147 struct user_namespace *ns, int cap); 149 extern bool ns_capable(struct user_namespace *ns, int cap); 150 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap); 151 extern bool ns_capable_setid(struct user_namespace *ns, int cap); 158 struct user_namespace *ns, int cap) in has_ns_capability() 167 struct user_namespace *ns, int cap) in has_ns_capability_noaudit() 175 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() 179 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit() [all …]
|
| D | mnt_idmapping.h | 9 struct user_namespace; 13 extern struct user_namespace init_user_ns; 123 struct user_namespace *fs_userns, kuid_t kuid); 126 struct user_namespace *fs_userns, kgid_t kgid); 129 struct user_namespace *fs_userns, vfsuid_t vfsuid); 132 struct user_namespace *fs_userns, vfsgid_t vfsgid); 147 struct user_namespace *fs_userns, in vfsuid_has_fsmapping() 153 static inline bool vfsuid_has_mapping(struct user_namespace *userns, in vfsuid_has_mapping() 185 struct user_namespace *fs_userns, in vfsgid_has_fsmapping() 191 static inline bool vfsgid_has_mapping(struct user_namespace *userns, in vfsgid_has_mapping() [all …]
|
| D | utsname.h | 21 struct user_namespace; 22 extern struct user_namespace init_user_ns; 26 struct user_namespace *user_ns; 39 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 | posix_acl_xattr.h | 36 struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns, 40 posix_acl_from_xattr(struct user_namespace *user_ns, const void *value, in posix_acl_from_xattr() 47 int posix_acl_to_xattr(struct user_namespace *user_ns,
|
| D | mnt_namespace.h | 11 struct user_namespace; 15 struct user_namespace *, struct fs_struct *);
|
| D | ipc_namespace.h | 16 struct user_namespace; 75 struct user_namespace *user_ns; 133 struct user_namespace *user_ns, struct ipc_namespace *ns); 155 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
|
| 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 | time_namespace.h | 12 struct user_namespace; 13 extern struct user_namespace init_user_ns; 23 struct user_namespace *user_ns; 46 struct user_namespace *user_ns, 132 struct user_namespace *user_ns, in copy_time_ns()
|
| D | pid_namespace.h | 37 struct user_namespace *user_ns; 76 struct user_namespace *user_ns, struct pid_namespace *ns); 95 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns()
|
| D | cred.h | 139 struct user_namespace *user_ns; /* user_ns the caps and keyrings are relative to. */ 384 extern struct user_namespace init_user_ns; 388 static inline struct user_namespace *current_user_ns(void) in current_user_ns()
|
| D | posix_acl.h | 18 struct user_namespace; 93 int posix_acl_valid(struct user_namespace *, const struct posix_acl *);
|
| 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 | nsproxy.h | 53 struct user_namespace *: &(__ns->ns), \
|
| D | proc_ns.h | 23 struct user_namespace *(*owner)(struct ns_common *ns);
|
| D | inet_diag.h | 85 struct user_namespace *user_ns, bool net_admin);
|
| D | fs_context.h | 25 struct user_namespace; 97 struct user_namespace *user_ns; /* The user namespace for this mount */
|
| D | mount.h | 19 struct user_namespace;
|
| D | seq_file.h | 248 static inline struct user_namespace *seq_user_ns(struct seq_file *seq) in seq_user_ns() 253 extern struct user_namespace init_user_ns; in seq_user_ns()
|
| D | netlink.h | 352 struct user_namespace *ns, int cap); 354 struct user_namespace *ns, int cap);
|
| D | cgroup.h | 774 struct user_namespace *user_ns; 786 struct user_namespace *user_ns, 796 copy_cgroup_ns(unsigned long flags, struct user_namespace *user_ns, in copy_cgroup_ns()
|
| /include/net/ |
| D | net_namespace.h | 47 struct user_namespace; 89 struct user_namespace *user_ns; /* Owning user namespace */ 200 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns, 213 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
|
| D | scm.h | 185 struct user_namespace *current_ns = current_user_ns(); in __scm_recv_common()
|