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()300 struct ucred peer_cred; in client()
46 static __inline__ int scm_check_creds(struct ucred *creds) in scm_check_creds()171 struct ucred creds; in __scm_send()174 if (cmsg->cmsg_len != CMSG_LEN(sizeof(struct ucred))) in __scm_send()176 memcpy(&creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in __scm_send()
1577 struct ucred *ucred) in cred_to_ucred() argument1579 ucred->pid = pid_vnr(pid); in cred_to_ucred()1580 ucred->uid = ucred->gid = -1; in cred_to_ucred()1584 ucred->uid = from_kuid_munged(current_ns, cred->euid); in cred_to_ucred()1585 ucred->gid = from_kgid_munged(current_ns, cred->egid); in cred_to_ucred()1764 struct ucred peercred; in sk_getsockopt()
174 struct ucred ucreds = { in __scm_recv_common()
86 char control[CMSG_SPACE(sizeof(struct ucred))]; in uevent_listener()
182 struct ucred { struct