aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorAndrew Turner <andrew@fubar.geek.nz>2021-05-17 15:05:06 +0000
committerMark Johnston <markjdb@gmail.com>2021-05-17 16:03:35 -0400
commite6ee6c99b36c702b09fd7047ccc3b5fa56ebb3c0 (patch)
tree9147ae65d72ee59b9b3f090a3f45c3b486e0ef97 /sys
parent0e75f99efaaa92ae6213c1f3a8a68d50cf3c1aa6 (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.txt5
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]]