Open OTP-Maintainer opened 4 years ago
hauleth
said:
Ok, I have read a little bit about it and it is even a little bit more complex. In FreeBSD (and derivatives like macOS) it uses [different structure|https://github.com/freebsd/freebsd/blob/401e02f6005b2cbeb79c8a6ebaf412be79ff2775/tools/regression/sockets/unix_cmsg/t_cmsgcred.c#L43] (actually [two structs|https://github.com/freebsd/freebsd/blob/401e02f6005b2cbeb79c8a6ebaf412be79ff2775/tools/regression/sockets/unix_cmsg/t_sockcred.c#L43] depending on how the creds are sent) than [Linux|https://linux.die.net/man/7/unix]. So the only fields that are *guaranteed to be present* on both are {{uid}} and {{gid}}. I have no idea how to solve sending part, on receiving end we can just check which one is the arriving and decode respectively.
bmk
said:
Yes, and OpenBSD and NetBSD has also different structures.
Original reporter:
hauleth
Affected version:Not Specified
Component:kernel
Migrated from: https://bugs.erlang.org/browse/ERL-1201