From owner-freebsd-hackers@freebsd.org Thu Apr 22 18:49:44 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B8B205FB8FA for ; Thu, 22 Apr 2021 18:49:44 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FR60l6NR6z4h5m for ; Thu, 22 Apr 2021 18:49:43 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f173.google.com with SMTP id l22so45680080ljc.9 for ; Thu, 22 Apr 2021 11:49:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gN9girZvGMR1JqK+2dx/0VUwj6Mxafj81ady0cus1K8=; b=TFljkb3XFDDIFw79c11i9cXUlqvcm1bCf+BOyX8ekKJwNfQGkJ2infAk/q+pC2/gwD 3xy+kD2Miu+jHquNDgbnM7NwucvniGHh7z75Orl+41UOJqUqMd3Kc/9gz4Muan4us4TS Bca0WAT4MOSAAOrF1hgWJQqk8+op1PvTVq2okBfl43hEv3k1Bgzensa5e2xSmtq7ehLK iutlR5InPS2/dEMvcWXKvxT19N84rGx3ffUj4Bub5jN27DpqU4liYyf14TF7z+qdxtdz FCdQjWoYoTxQDyBkw9LiQhrL2FbNaJ0ErPGdDur6lUU6GB74lHUa2+lgI0h20l9tsiut I4Zw== X-Gm-Message-State: AOAM530x5RdNWK52eW9KUaomiaWoGdDNu7j4QtemTn4+t09yWfUsugSC Oqh2JIfmnMB/fDn4n0zmQv+ComoJ3zCkWA== X-Google-Smtp-Source: ABdhPJx3sRtaWnKj1Xu/Y3Qx5jVv2CnfP4cNm5qpwl/xM2vjWFurE1FqndkhL+W0K8EbB49XApt9Yw== X-Received: by 2002:a2e:b54a:: with SMTP id a10mr153218ljn.488.1619117381702; Thu, 22 Apr 2021 11:49:41 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id w23sm330265lfu.132.2021.04.22.11.49.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Apr 2021 11:49:41 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id z23so6544362lji.4 for ; Thu, 22 Apr 2021 11:49:41 -0700 (PDT) X-Received: by 2002:a2e:b175:: with SMTP id a21mr163818ljm.248.1619117381188; Thu, 22 Apr 2021 11:49:41 -0700 (PDT) MIME-Version: 1.0 References: <40116716-D8D9-438D-A168-B26A112D199E@yahoo.com> In-Reply-To: From: Gleb Popov Date: Thu, 22 Apr 2021 21:49:15 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: A bug with getsockopt(SOL_LOCAL, LOCAL_PEERCRED) ? To: Konstantin Belousov Cc: freebsd-hackers X-Rspamd-Queue-Id: 4FR60l6NR6z4h5m X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.208.173 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-1.94 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.942]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[209.85.208.173:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; SPAMHAUS_ZRD(0.00)[209.85.208.173:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.173:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.173:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2021 18:49:44 -0000 On Thu, Apr 22, 2021 at 1:33 PM Konstantin Belousov wrote: > There is no peer for listening socket. > > Show minimal code that works for you on Linux. > Here you go: http://arrowd.name/un_linux.cpp It is almost identical to FreeBSD one, but works for me on ArchLinux.