Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2321852rwd; Fri, 19 May 2023 04:18:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7bpJ8Yty0yBW4KCCpjI0RGXZYyHzaIYqtFkWiC2/WaLsOwEg3jx4LHpAXRN9xxFghou4bm X-Received: by 2002:a17:902:ab14:b0:19c:dbce:dce8 with SMTP id ik20-20020a170902ab1400b0019cdbcedce8mr2580392plb.15.1684495111957; Fri, 19 May 2023 04:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684495111; cv=none; d=google.com; s=arc-20160816; b=lSFas27gL2j/LmHbdsS6EYericwOBj3dUaCF25pwk0f0M6D/RMRB99BKiZifivpW1h 349l15ZmQmcfSF5w1eyNf75gpoBhIuuXdeI+/0ZiF8WGSbqeBCggXvodJwDQmSfUtIIy GdS4HpR2M7hP3SGXzXANEIdKtQSiQ8K1BbOx2/C01QAXp8E2GWA5W72iETdOiTDAXugs wmql+Ea+VRMrOpMptn6gmRQTZYVPzv7x6rIU6y/yH660+x1acJke1qxl2m0f40ule3UU mCp5B+rl8e7tSQzBWGBE3oGP49RSzgS0I4YbI6IPIQI/E0VbCkI5gTXX0sAzTzeHFu6B IREQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v67qSXu/gUW8TQVrFa0GO7t7IyymyVn3Nn/exhVCMYQ=; b=y6epEUIv5EcjCFR2hwsxGn/8Y0LmkKgLcLBwAjAV+sziWe7dE4JkVopeO+bnqKtQJG JgKGGwtB4DDXkm7r/1VWuUGqvFf4ZkzT5++cZagl6DLgzAwkmVws+3D1SOARQALwuVtD Dpa5z+OvaFTPcmqwco2Kb8a8nwADQzRWyllIGFs/vSKnrzJ7joIjn8aDpPMfa7PEQxQi 8GAMQWyvIsSBCa4j38j9jX9uvntyvetAEMswoIIiSIQ3EWNrZhzvEu96H3Mnmsk7IB11 jkzwfGkvwFR0xV49xUZVcFXn6aIU2+dDpY4rfsnvzLqe9D7q1a6FIUoEwcEP+uP7mlin QRlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nV61AYVt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a17090332d000b001adb600d5e9si3528519plr.640.2023.05.19.04.18.16; Fri, 19 May 2023 04:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nV61AYVt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231985AbjESLEX (ORCPT + 99 others); Fri, 19 May 2023 07:04:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231995AbjESLEM (ORCPT ); Fri, 19 May 2023 07:04:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6037619A2; Fri, 19 May 2023 04:03:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AD7A3656B2; Fri, 19 May 2023 11:03:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FA98C433D2; Fri, 19 May 2023 11:03:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684494232; bh=hCAAc+TNbuzkt0nWAsdUMnYbobl64u6xrVvPxYHXD6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nV61AYVtM/1pc9o0dc8qmGqQ0EntCR5w5fUA7GKknwh7nBnlh6K1q01En8E2Y1R8M eFwttfEtz7T/tcYVSB8dapyM0mtaenV5UAY5rD0KI7bIESEzA8v5R+uQbNIms5xeOl VkGka5Rolh3+BPmzCIh/poK0u/7oAu7y5vvMnSXL3QjbkHpAVpPAT1eRYa3StLXufi AcB6jNZGGIA5ChTksthScCMvbty0NHWJ0eCAorU0wuClfDEBuIxgsuxY4QypRGUJ+o Q0/GJ56/Q1ik6okcm1nkcSGrHW0J+0c2VfQA+Hlz8GNNyl7Z++mirjEvr/WjhlQ+Mw uGFNjvJ3JuWZA== Date: Fri, 19 May 2023 13:03:44 +0200 From: Christian Brauner To: Alexander Mikhalitsyn Cc: davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Leon Romanovsky , David Ahern , Arnd Bergmann , Kees Cook , Kuniyuki Iwashima , Lennart Poettering , Luca Boccassi , Daniel Borkmann , Stanislav Fomichev , bpf@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH net-next v5 2/3] net: core: add getsockopt SO_PEERPIDFD Message-ID: <20230519-zielbereich-inkompatibel-79e1a910e3f9@brauner> References: <20230517113351.308771-1-aleksandr.mikhalitsyn@canonical.com> <20230517113351.308771-3-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230517113351.308771-3-aleksandr.mikhalitsyn@canonical.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2023 at 01:33:50PM +0200, Alexander Mikhalitsyn wrote: > Add SO_PEERPIDFD which allows to get pidfd of peer socket holder pidfd. > This thing is direct analog of SO_PEERCRED which allows to get plain PID. > > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: Leon Romanovsky > Cc: David Ahern > Cc: Arnd Bergmann > Cc: Kees Cook > Cc: Christian Brauner > Cc: Kuniyuki Iwashima > Cc: Lennart Poettering > Cc: Luca Boccassi > Cc: Daniel Borkmann > Cc: Stanislav Fomichev > Cc: bpf@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: linux-arch@vger.kernel.org > Tested-by: Luca Boccassi > Signed-off-by: Alexander Mikhalitsyn > --- > v5: > - started using (struct proto)->bpf_bypass_getsockopt hook Looks good to me, Reviewed-by: Christian Brauner