On Wed, 2013-03-13 at 00:00 -0700, Joel Lopes Da Silva wrote:
> > As you noticed, apparently getsockopt(SO_PEERCRED) doesn't work with
> > kFreeBSD. You can anyway work around the problem by giving everyone
> > access to the userdb socket:
> >
> > service auth {
> > unix_listener userdb {
> > mode = 0777
> > }
> > }
>
> This workaround works for me. Thanks Timo.
>
> Do you think there might be an equivalent API we could use on kFreeBSD to
> accomplish the same behavior as the one available on Linux?
src/lib/net.c net_getunixcred() has multiple ways to do it for different
OSes. You could try if one of them works.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]