Lines Matching refs:cred
13 #include <linux/cred.h>
23 int create_user_ns(struct cred *new)
87 uid_t user_ns_map_uid(struct user_namespace *to, const struct cred *cred, uid_t uid)
91 if (likely(to == cred->user->user_ns))
95 /* Is cred->user the creator of the target user_ns
100 if (cred->user == tmp->creator) {
109 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid)
113 if (likely(to == cred->user->user_ns))
116 /* Is cred->user the creator of the target user_ns
121 if (cred->user == tmp->creator) {