Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/include/linux/
Duser_namespace.h56 struct user_namespace { struct
61 struct user_namespace *parent; argument
97 struct user_namespace *ns; argument
103 extern struct user_namespace init_user_ns;
105 bool setup_userns_sysctls(struct user_namespace *ns);
106 void retire_userns_sysctls(struct user_namespace *ns);
107 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
112 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
121 extern void __put_user_ns(struct user_namespace *ns);
123 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
[all …]
Duidgid.h18 struct user_namespace;
19 extern struct user_namespace init_user_ns;
131 extern kuid_t make_kuid(struct user_namespace *from, uid_t uid);
132 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid);
134 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid);
135 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid);
136 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid);
137 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid);
139 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping()
144 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping()
[all …]
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()
Dcapability.h44 struct user_namespace;
206 struct user_namespace *ns, int cap);
209 struct user_namespace *ns, int cap);
211 extern bool ns_capable(struct user_namespace *ns, int cap);
212 extern bool ns_capable_noaudit(struct user_namespace *ns, int cap);
213 extern bool ns_capable_setid(struct user_namespace *ns, int cap);
220 struct user_namespace *ns, int cap) in has_ns_capability()
229 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
237 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
241 static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
[all …]
Dutsname.h21 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()
Dtime_namespace.h12 struct user_namespace;
13 extern struct user_namespace init_user_ns;
22 struct user_namespace *user_ns;
45 struct user_namespace *user_ns,
116 struct user_namespace *user_ns, in copy_time_ns()
Dipc_namespace.h14 struct user_namespace;
68 struct user_namespace *user_ns;
126 struct user_namespace *user_ns, struct ipc_namespace *ns);
148 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs()
Dpid_namespace.h32 struct user_namespace *user_ns;
51 struct user_namespace *user_ns, struct pid_namespace *ns);
65 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns()
Dmnt_namespace.h8 struct user_namespace;
12 struct user_namespace *, struct fs_struct *);
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()
Dposix_acl_xattr.h47 struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns,
49 int posix_acl_to_xattr(struct user_namespace *user_ns,
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()
/kernel/linux/linux-5.10/kernel/
Duser_namespace.c28 struct user_namespace *ns, int cap_setid,
32 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
42 static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns) in set_cred_user_ns()
71 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns()
177 struct user_namespace *parent, *ns = in free_user_ns()
178 container_of(work, struct user_namespace, work); in free_user_ns()
204 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
387 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
406 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid()
431 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged()
[all …]
Dcapability.c295 struct user_namespace *ns, int cap) in has_ns_capability()
336 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
364 static bool ns_capable_common(struct user_namespace *ns, in ns_capable_common()
394 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
412 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
431 bool ns_capable_setid(struct user_namespace *ns, int cap) in ns_capable_setid()
466 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable()
487 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode) in privileged_wrt_inode_uidgid()
504 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid()
518 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) in ptracer_capable()
Ducount.c37 struct user_namespace *user_ns = in set_permissions()
38 container_of(head->set, struct user_namespace, set); in set_permissions()
81 bool setup_userns_sysctls(struct user_namespace *ns) in setup_userns_sysctls()
105 void retire_userns_sysctls(struct user_namespace *ns) in retire_userns_sysctls()
117 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashe… in find_ucounts()
128 static struct ucounts *get_ucounts(struct user_namespace *ns, kuid_t uid) in get_ucounts()
192 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, in inc_ucount()
196 struct user_namespace *tns; in inc_ucount()
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()
158 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
Dgroups.c45 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()
Dpid_namespace.c61 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces()
71 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace()
143 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns()
432 static struct user_namespace *pidns_owner(struct ns_common *ns) in pidns_owner()
/kernel/linux/linux-5.10/security/keys/
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()
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()
/kernel/linux/linux-5.10/ipc/
Dnamespace.c22 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()
213 static struct user_namespace *ipcns_owner(struct ns_common *ns) in ipcns_owner()
/kernel/linux/linux-5.10/kernel/cgroup/
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()
/kernel/linux/linux-5.10/include/net/
Dnet_namespace.h45 struct user_namespace;
91 struct user_namespace *user_ns; /* Owning user namespace */
206 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
218 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
/kernel/linux/linux-5.10/fs/quota/
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()
/kernel/linux/linux-5.10/fs/nfs/
Dnfs3xdr.c108 static struct user_namespace *rpc_userns(const struct rpc_clnt *clnt) in rpc_userns()
115 static struct user_namespace *rpc_rqst_userns(const struct rpc_rqst *rqstp) in rpc_rqst_userns()
535 struct user_namespace *userns) in encode_sattr3()
622 struct user_namespace *userns) in decode_fattr3()
676 struct user_namespace *userns) in decode_post_op_attr()
746 struct user_namespace *userns) in decode_wcc_data()
1017 struct user_namespace *userns) in encode_createhow3()
1076 struct user_namespace *userns) in encode_symlinkdata3()
1121 struct user_namespace *userns) in encode_devicedata3()
1129 struct user_namespace *userns) in encode_mknoddata3()
[all …]

12345