Lines Matching refs:creds
47 static __inline__ int scm_check_creds(struct ucred *creds)
50 kuid_t uid = make_kuid(cred->user_ns, creds->uid);
51 kgid_t gid = make_kgid(cred->user_ns, creds->gid);
56 if ((creds->pid == task_tgid_vnr(current) ||
176 struct ucred creds;
181 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred));
182 err = scm_check_creds(&creds);
186 p->creds.pid = creds.pid;
187 if (!p->pid || pid_vnr(p->pid) != creds.pid) {
190 pid = find_get_pid(creds.pid);
198 uid = make_kuid(current_user_ns(), creds.uid);
199 gid = make_kgid(current_user_ns(), creds.gid);
203 p->creds.uid = uid;
204 p->creds.gid = gid;