BSDs and wl_client_get_credentials

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


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?



Simon Ser

More information about the wayland-devel mailing list