Lines Matching defs:creds
49 static __inline__ int scm_check_creds(struct ucred *creds)
52 kuid_t uid = make_kuid(cred->user_ns, creds->uid);
53 kgid_t gid = make_kgid(cred->user_ns, creds->gid);
58 if ((creds->pid == task_tgid_vnr(current) ||
162 scm->creds.pid = pid_vnr(pid);
200 struct ucred creds;
205 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred));
206 err = scm_check_creds(&creds);
210 if (!p->pid || pid_vnr(p->pid) != creds.pid) {
213 pid = find_get_pid(creds.pid);
228 uid = make_kuid(current_user_ns(), creds.uid);
229 gid = make_kgid(current_user_ns(), creds.gid);
233 p->creds.uid = uid;
234 p->creds.gid = gid;
518 .pid = scm->creds.pid,
519 .uid = from_kuid_munged(current_ns, scm->creds.uid),
520 .gid = from_kgid_munged(current_ns, scm->creds.gid),