Lines Matching refs:creds
238 struct ucred *creds; in nl_send_iovec() local
254 creds = nlmsg_get_creds(msg); in nl_send_iovec()
255 if (creds != NULL) { in nl_send_iovec()
266 memcpy(CMSG_DATA(cmsg), creds, sizeof(struct ucred)); in nl_send_iovec()
400 unsigned char **buf, struct ucred **creds) in nl_recv() argument
475 *creds = calloc(1, sizeof(struct ucred)); in nl_recv()
476 memcpy(*creds, CMSG_DATA(cmsg), sizeof(struct ucred)); in nl_recv()
513 struct ucred *creds = NULL; in recvmsgs() local
518 n = cb->cb_recv_ow(sk, &nla, &buf, &creds); in recvmsgs()
520 n = nl_recv(sk, &nla, &buf, &creds); in recvmsgs()
540 if (creds) in recvmsgs()
541 nlmsg_set_creds(msg, creds); in recvmsgs()
667 free(creds); in recvmsgs()
670 creds = NULL; in recvmsgs()
681 free(creds); in recvmsgs()