Home
last modified time | relevance | path

Searched refs:user_namespace (Results 1 – 25 of 113) sorted by relevance

12345

/openbmc/linux/include/linux/
H A Duser_namespace.h68 struct user_namespace { struct
72 struct user_namespace *parent; argument
109 struct user_namespace *ns; argument
116 extern struct user_namespace init_user_ns;
119 bool setup_userns_sysctls(struct user_namespace *ns);
120 void retire_userns_sysctls(struct user_namespace *ns);
151 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
160 extern void __put_user_ns(struct user_namespace *ns);
179 const struct user_namespace *child);
184 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
[all …]
H A Duidgid.h18 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);
143 static inline kuid_t make_kuid(struct user_namespace *from, uid_t uid) in make_kuid()
153 static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid) in from_kuid()
[all …]
H A Dprojid.h17 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()
H A Dcapability.h41 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()
183 static inline bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid()
[all …]
H A Dmnt_idmapping.h9 struct user_namespace;
12 extern struct user_namespace init_user_ns;
119 struct user_namespace *fs_userns, kuid_t kuid);
122 struct user_namespace *fs_userns, kgid_t kgid);
125 struct user_namespace *fs_userns, vfsuid_t vfsuid);
128 struct user_namespace *fs_userns, vfsgid_t vfsgid);
143 struct user_namespace *fs_userns, in vfsuid_has_fsmapping()
149 static inline bool vfsuid_has_mapping(struct user_namespace *userns, in vfsuid_has_mapping()
181 struct user_namespace *fs_userns, in vfsgid_has_fsmapping()
220 struct user_namespace *fs_userns) in mapped_fsuid()
[all …]
H A Dutsname.h21 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()
H A Dtime_namespace.h11 struct user_namespace;
12 extern struct user_namespace init_user_ns;
20 struct user_namespace *user_ns;
43 struct user_namespace *user_ns,
129 struct user_namespace *user_ns, in copy_time_ns()
H A Dposix_acl_xattr.h36 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,
H A Dipc_namespace.h16 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()
H A Dpid_namespace.h37 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()
H A Dmnt_namespace.h8 struct user_namespace;
12 struct user_namespace *, struct fs_struct *);
H A Dtsacct_kern.h14 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()
H A Dcred.h138 struct user_namespace *user_ns; /* user_ns the caps and keyrings are relative to. */
342 extern struct user_namespace init_user_ns;
346 static inline struct user_namespace *current_user_ns(void) in current_user_ns()
H A Dquota.h79 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()
/openbmc/linux/fs/
H A Dmnt_idmapping.c13 struct user_namespace *owner;
50 static inline bool initial_idmapping(const struct user_namespace *ns) in initial_idmapping()
70 const struct user_namespace *fs_userns) in no_idmapping()
97 struct user_namespace *fs_userns, in make_vfsuid()
101 struct user_namespace *mnt_userns = idmap->owner; in make_vfsuid()
136 struct user_namespace *fs_userns, kgid_t kgid) in make_vfsgid()
139 struct user_namespace *mnt_userns = idmap->owner; in make_vfsgid()
165 struct user_namespace *fs_userns, vfsuid_t vfsuid) in from_vfsuid()
168 struct user_namespace *mnt_userns = idmap->owner; in from_vfsuid()
193 struct user_namespace *fs_userns, vfsgid_t vfsgid) in from_vfsgid()
[all …]
/openbmc/linux/kernel/
H A Duser_namespace.c29 struct user_namespace *ns, int cap_setid,
198 struct user_namespace *parent, *ns = in free_user_ns()
601 struct user_namespace *ns = seq->private; in uid_m_show()
603 struct user_namespace *lower_ns; in uid_m_show()
622 struct user_namespace *ns = seq->private; in gid_m_show()
624 struct user_namespace *lower_ns; in gid_m_show()
645 struct user_namespace *lower_ns; in projid_m_show()
879 struct user_namespace *map_ns, in verify_root_map()
1303 const struct user_namespace *ns; in in_userns()
1322 struct user_namespace *user_ns; in userns_get()
[all …]
H A Dcapability.c281 struct user_namespace *ns, int cap) in has_ns_capability()
322 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
351 static bool ns_capable_common(struct user_namespace *ns, in ns_capable_common()
381 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
399 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
418 bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid()
453 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable()
475 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, in privileged_wrt_inode_uidgid()
496 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid()
511 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) in ptracer_capable()
H A Ducount.c43 struct user_namespace *user_ns = in set_permissions()
44 container_of(head->set, struct user_namespace, set); in set_permissions()
94 bool setup_userns_sysctls(struct user_namespace *ns) in setup_userns_sysctls()
119 void retire_userns_sysctls(struct user_namespace *ns) in retire_userns_sysctls()
131 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashe… in find_ucounts()
165 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid) in alloc_ucounts()
230 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, in inc_ucount()
234 struct user_namespace *tns; in inc_ucount()
H A Dutsname.c20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces()
45 static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns, in clone_uts_ns()
90 struct user_namespace *user_ns, struct uts_namespace *old_ns) in copy_utsname()
155 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
H A Dgroups.c40 struct user_namespace *user_ns = current_user_ns(); in groups_to_user()
57 struct user_namespace *user_ns = current_user_ns(); in groups_from_user()
187 struct user_namespace *user_ns = current_user_ns(); in may_setgroups()
/openbmc/linux/security/keys/
H A Dpersistent.c20 static int key_create_persistent_register(struct user_namespace *ns) in key_create_persistent_register()
40 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, in key_create_persistent()
73 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, in key_get_persistent()
131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
H A Dproc.c66 struct user_namespace *user_ns = seq_user_ns(p); in key_serial_next()
80 struct user_namespace *user_ns = seq_user_ns(p); in find_ge_key()
252 static struct rb_node *__key_user_next(struct user_namespace *user_ns, struct rb_node *n) in __key_user_next()
263 static struct rb_node *key_user_next(struct user_namespace *user_ns, struct rb_node *n) in key_user_next()
268 static struct rb_node *key_user_first(struct user_namespace *user_ns, struct rb_root *r) in key_user_first()
/openbmc/linux/ipc/
H A Dnamespace.c28 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns) in inc_ipc_namespaces()
38 static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns, in create_ipc_ns()
108 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
246 static struct user_namespace *ipcns_owner(struct ns_common *ns) in ipcns_owner()
/openbmc/linux/kernel/cgroup/
H A Dnamespace.c12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces()
51 struct user_namespace *user_ns, in copy_cgroup_ns()
139 static struct user_namespace *cgroupns_owner(struct ns_common *ns) in cgroupns_owner()
/openbmc/linux/fs/quota/
H A Dkqid.c68 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()

12345