Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2021 19:12:13 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Gleb Popov <arrowd@freebsd.org>
Cc:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: A bug with getsockopt(SOL_LOCAL, LOCAL_PEERCRED) ?
Message-ID:  <C40F57B4-08B9-411D-B5A2-114149249BAB@yahoo.com>
In-Reply-To: <CALH631kRjB-nAtsDLSS34WtDBL9x-2k_kZM9ZpjCzFkJX8-5eg@mail.gmail.com>
References:  <CALH631kLCApctk4iQJj6br0Pzeb6qsh9g3jz_SA8hH91ftQGDQ@mail.gmail.com> <YHiQ6qEjS2w8uYpS@kib.kiev.ua> <CALH631=3hqvfraume467OM%2BqGqp854sGJFfhO8b61mF%2BkbsJ2Q@mail.gmail.com> <E6626DFC-2014-412C-AEA2-ECE57835B058@yahoo.com> <CALH631mi0xOQGjd6F3Beu_BQdqAx8RYCrbkUi524F8S4rwo1aA@mail.gmail.com> <40116716-D8D9-438D-A168-B26A112D199E@yahoo.com> <CALH631nrhyY%2BK3tPSwt1wuYHoZkz371UtjK%2BdG844RybtA2yKw@mail.gmail.com> <YIFQ/U34i1Jbxjv7@kib.kiev.ua> <CALH631maNoe_x%2BippbRTE3s8XarZ32Nrb%2BfXWUz-NMFeCre_-w@mail.gmail.com> <YIHPzqgjRwDtrMrM@kib.kiev.ua> <445774BD-D68B-48A1-856D-F8DC9A480C68@yahoo.com> <0C66B2A2-C9C6-4783-8A26-F736F3B9CCD8@yahoo.com> <AA2EDB34-4977-4449-BE48-B898DBC16188@yahoo.com> <CALH631mc8gstiSVucir%2B_J62LX9LQTU2CGC-eGoD6kU5DDXKQA@mail.gmail.com> <CALH631kRjB-nAtsDLSS34WtDBL9x-2k_kZM9ZpjCzFkJX8-5eg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2021-Apr-23, at 02:59, Gleb Popov <arrowd at freebsd.org> wrote:

> All right, I got an answer from Collabora and they confirmed that it is a
> bug on their side.
> 
> They indeed wanted to check creds on the accepted socket, not the listening
> one.
> 
> So, unless I am missing something, I think it is good to have FreeBSD error
> out in this case.

FreeBSD's Linux-compatibility code may well be desired to
have the same behavior as Linux implementations do, even
if the specific example from Collabora via this issue was
found only mistakenly put the functionality to use (in
both Linux and FreeBSD). There may be other Linux code
that does deliberately put the functionality to use.

The FreeSD-native API properties need not be driven by
Linux implementation properites.

Konstantin has the examples to use in making the choices,
with pid information to help make the behavior clear.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C40F57B4-08B9-411D-B5A2-114149249BAB>