From e6ee6c99b36c702b09fd7047ccc3b5fa56ebb3c0 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Mon, 17 May 2021 15:05:06 +0000 Subject: sys/freebsd: fix cmsghdr_un_cred on FreeBSD * Use the FreeBSD SCM_CREDS value rather than the Linux SCM_CREDENTIALS. * Update based on the FreeBSD struct cmsgcred --- sys/freebsd/socket_unix.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/freebsd/socket_unix.txt b/sys/freebsd/socket_unix.txt index 84019af07..6d041f908 100644 --- a/sys/freebsd/socket_unix.txt +++ b/sys/freebsd/socket_unix.txt @@ -75,8 +75,11 @@ cmsghdr_un_rights { cmsghdr_un_cred { len len[parent, intptr] level const[SOL_SOCKET, int32] - type const[LINUX_SCM_CREDENTIALS, int32] + type const[SCM_CREDS, int32] pid pid uid uid + euid uid gid gid + ngroups len[groups, int16] + groups array[gid, CMGROUP_MAX] } [align[PTR_SIZE]] -- cgit mrf-deployment