diff options
| author | Andrew Turner <andrew@fubar.geek.nz> | 2021-05-17 15:05:06 +0000 |
|---|---|---|
| committer | Mark Johnston <markjdb@gmail.com> | 2021-05-17 16:03:35 -0400 |
| commit | e6ee6c99b36c702b09fd7047ccc3b5fa56ebb3c0 (patch) | |
| tree | 9147ae65d72ee59b9b3f090a3f45c3b486e0ef97 /sys | |
| parent | 0e75f99efaaa92ae6213c1f3a8a68d50cf3c1aa6 (diff) | |
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
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/freebsd/socket_unix.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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]] |
