Lines Matching refs:creds
48 static __inline__ int scm_check_creds(struct ucred *creds) in scm_check_creds() argument
51 kuid_t uid = make_kuid(cred->user_ns, creds->uid); in scm_check_creds()
52 kgid_t gid = make_kgid(cred->user_ns, creds->gid); in scm_check_creds()
57 if ((creds->pid == task_tgid_vnr(current) || in scm_check_creds()
167 struct ucred creds; in __scm_send() local
172 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send()
173 err = scm_check_creds(&creds); in __scm_send()
177 p->creds.pid = creds.pid; in __scm_send()
178 if (!p->pid || pid_vnr(p->pid) != creds.pid) { in __scm_send()
181 pid = find_get_pid(creds.pid); in __scm_send()
189 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send()
190 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()
194 p->creds.uid = uid; in __scm_send()
195 p->creds.gid = gid; in __scm_send()