Home
last modified time | relevance | path

Searched refs:ucred (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/tools/testing/selftests/net/af_unix/
Dscm_pidfd.c134 struct ucred *ucred = NULL; in cmsg_check() local
136 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()
/linux-6.6.21/net/core/
Dscm.c46 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()
Dsock.c1577 struct ucred *ucred) in cred_to_ucred() argument
1579 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()
/linux-6.6.21/include/net/
Dscm.h174 struct ucred ucreds = { in __scm_recv_common()
/linux-6.6.21/tools/testing/selftests/uevent/
Duevent_filtering.c86 char control[CMSG_SPACE(sizeof(struct ucred))]; in uevent_listener()
/linux-6.6.21/include/linux/
Dsocket.h182 struct ucred { struct
/linux-6.6.21/tools/perf/trace/beauty/include/linux/
Dsocket.h182 struct ucred { struct