Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2306601rwd; Fri, 19 May 2023 04:06:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59gNRGOeV+86BYs4S867zIlhWXoVHVk6sjSZMepx3XeON5N40Fbx4Zj3s/UQDlEoda0lEW X-Received: by 2002:a05:6a20:748d:b0:106:c9b7:c932 with SMTP id p13-20020a056a20748d00b00106c9b7c932mr1979871pzd.1.1684494362363; Fri, 19 May 2023 04:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684494362; cv=none; d=google.com; s=arc-20160816; b=aweioKdcdlLWz0NqfeUCKdDCzfubuyA5IaHWx+wj7sUZ3IDK4fk5cpbtc1AASa9xgM On9k8NhpF6CECB8gR6KCKuoakSgcEbrLgvQLb3pn4IvWpwWiLNUPccCeZqzPQ03FyQWa CJaBHaQBGy6kPhSeEFWYwvp5+gTl88dI9693O0L5EECmYJoeRbGJGpdaxHMk2xNMPW1E +2MxW2ksmwDJX0tukVsOi99oY1dHmRNeX+EVQvLwTMJURz7h++pOPWhZ1Bh8ujb5GfAK yEIAzxczTboJpaisJe98p8AOfvfwAb4NnnBo7MkOxoA70r0EghA3E3Dnu8jhBvHNDajq +M+w== 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=QU/R9qE+P9kLHNhbu7ljFiGpdp4K0K6pIdhoeoZMZv4=; b=h2iWidini09emCjy1SIfcvYwnW9446KQ2M/j6hYQ9AKDVmqa0+JA7DiaaS+GO3yv8B r8z6evPoRyFllg7f1tKRFdOMU6e2CX63y/dyH9PKrj0AcpjcddObVjxY1hHOuvmkAVv6 XIxSm6QsvAie/Eo5df26/b1zY01bLoW4OGIKaghEjeNSGg1nWYy9+IgGAY1fmhvS+pNh kYylBF7K1A+u1ZNKzm/kuP2rP5xruOjIoHgE7jTl2qogOA36SWXGyTGhnRBhTdDb3wc1 ttmIl8z5M53SqHZKyiNLRFJjR3B/e72gOlPFxb6zTi87ARj6f5FEHYnqkHjSu2vmQs+6 lgBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dYIHI3O/"; 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 l69-20020a633e48000000b00528d90d40e2si2567337pga.891.2023.05.19.04.05.46; Fri, 19 May 2023 04:06:02 -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="dYIHI3O/"; 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 S231906AbjESLFF (ORCPT + 99 others); Fri, 19 May 2023 07:05:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbjESLFC (ORCPT ); Fri, 19 May 2023 07:05:02 -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 23B7E10F3; Fri, 19 May 2023 04:04:40 -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 0F937656AE; Fri, 19 May 2023 11:04:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37386C433D2; Fri, 19 May 2023 11:04:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684494276; bh=7ECRcKgwCdyyTgDBbJz0zfr1+MHn2oRz/WMFm82eUgo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dYIHI3O/ukDbC0JJEKE54/DYeU/wAF3SvmrKeZAiqGvL3K3SBC0MNpHvYqe7DVx+N 6GU3h+6qL68gk0a7MjdQ61JMaGO0SJpZS6vltmcdVN2VP+wXgz6omdFaKihVKIQ6WV cSGeefn9Cec0eBSjPvrbpALM8nmHNL9Uof6aYsGbRh4e6VCiH2TUAd34XBucA26cfl NfuFO2sblCy69w9PyOO2CjWrAFciMslywAztINCVB/92zevnoynu44LvORUK5YgGtp LTw3VlSQWGlyFNUXynNmQsks5fq7gHrA84JwnvPfYk6kgmcSzM7XIlbaGk8AGi1+yN C9ndWmCjaH1Ug== Date: Fri, 19 May 2023 13:04:30 +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 , linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH net-next v5 3/3] selftests: net: add SCM_PIDFD / SO_PEERPIDFD test Message-ID: <20230519-zenit-schmieden-7f2aaa22ab08@brauner> References: <20230517113351.308771-1-aleksandr.mikhalitsyn@canonical.com> <20230517113351.308771-4-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230517113351.308771-4-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:51PM +0200, Alexander Mikhalitsyn wrote: > Basic test to check consistency between: > - SCM_CREDENTIALS and SCM_PIDFD > - SO_PEERCRED and SO_PEERPIDFD > > 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: linux-kernel@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: linux-arch@vger.kernel.org > Cc: linux-kselftest@vger.kernel.org > Signed-off-by: Alexander Mikhalitsyn > --- > v3: > - started using kselftest lib (thanks to Kuniyuki Iwashima for suggestion/review) > - now test covers abstract sockets too and SOCK_DGRAM sockets Thanks for adding tests!