BSDs and wl_client_get_credentials

Simon Ser contact at emersion.fr
Sun Jan 20 13:51:42 UTC 2019


Hi,

I wanted to start discussing about wl_client_get_credentials support in
various BSDs. wl_client_get_credentials uses getsockopt() with
SO_PEERCRED, which isn't supported on BSD. On the other hand, using
SCM_CREDENTIALS by passing a `struct ucred` ancillary message is
supported on both Linux and BSD [1].

Would it be possible to use this mechanism instead of SO_PEERCRED in
wl_client_get_credentials? Should we use SCM_CREDENTIALS on all
platforms or just BSDs? Any thoughts on doing this in a
backwards-compatible way?

Thanks,

[1]: https://www.freebsd.org/cgi/man.cgi?query=unix&sektion=7&apropos=0&manpath=SuSE+Linux%2fi386+11.3

--
Simon Ser
https://emersion.fr



More information about the wayland-devel mailing list