Searched refs:ucred (Results 1 – 7 of 7) sorted by relevance
134 struct ucred *ucred = NULL; in cmsg_check() local136 char control[CMSG_SPACE(sizeof(struct ucred)) + in cmsg_check()175 if (cmsg->cmsg_len < sizeof(*ucred)) { in cmsg_check()180 ucred = (void *)CMSG_DATA(cmsg); in cmsg_check()195 if (!ucred) { in cmsg_check()299 struct ucred peer_cred; in client()
47 static __inline__ int scm_check_creds(struct ucred *creds) in scm_check_creds()182 struct ucred creds; in __scm_send()185 if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct ucred))) in __scm_send()187 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send()
1678 struct ucred *ucred) in cred_to_ucred() argument1680 ucred->pid = pid_vnr(pid); in cred_to_ucred()1681 ucred->uid = ucred->gid = -1; in cred_to_ucred()1685 ucred->uid = from_kuid_munged(current_ns, cred->euid); in cred_to_ucred()1686 ucred->gid = from_kgid_munged(current_ns, cred->egid); in cred_to_ucred()1865 struct ucred peercred; in sk_getsockopt()
186 struct ucred ucreds = { in __scm_recv_common()
86 char control[CMSG_SPACE(sizeof(struct ucred))]; in uevent_listener()
183 struct ucred { struct