Lines Matching refs:creds
46 static __inline__ int scm_check_creds(struct ucred *creds)
49 kuid_t uid = make_kuid(cred->user_ns, creds->uid);
50 kgid_t gid = make_kgid(cred->user_ns, creds->gid);
55 if ((creds->pid == task_tgid_vnr(current) ||
170 struct ucred creds;
175 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred));
176 err = scm_check_creds(&creds);
180 p->creds.pid = creds.pid;
181 if (!p->pid || pid_vnr(p->pid) != creds.pid) {
184 pid = find_get_pid(creds.pid);
192 uid = make_kuid(current_user_ns(), creds.uid);
193 gid = make_kgid(current_user_ns(), creds.gid);
197 p->creds.uid = uid;
198 p->creds.gid = gid;