Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5379080rwe; Tue, 18 Apr 2023 06:13:36 -0700 (PDT) X-Google-Smtp-Source: AKy350b2cuu+vQ0qWSGuGjnkhV67KDTKBoXECwgOoYPfSyQNwGN5RqQMK2PrOtBx0NHAfrYtko63 X-Received: by 2002:a05:6a20:a59c:b0:f0:b18d:78fc with SMTP id bc28-20020a056a20a59c00b000f0b18d78fcmr1658629pzb.30.1681823616160; Tue, 18 Apr 2023 06:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681823616; cv=none; d=google.com; s=arc-20160816; b=XywT00OlHZn6BKKk6DDWO3x+bbZ6SFJ4cWUrqb0dEoPJ7kavz1vMOgyrrulMVEF7d5 JmTw0DYQyFHZ6gxTh33zJ7iPugobWfg6hHPzs9C02D/nKN5Ql/0MZEl6uVkc0GQW5lUX eV1h/kvk7f/vknO0GYZXwhyKUR0Fxdf4FabSj7plfdEyf+1Dk2YZJU8gaL0oYSQWeBTH 6cvOIIXKhOKJ4xGbMdvIJBMTaI0km7OuIs2SnrWrELZ9hxykhsgE24VJ0Sto0faVgqZI pTaJrbJDKg/ZhFVOLJgbuIKDtqiCuA+Qdm4deODsWq6xC6ef5sgHXuryS4/9hpaSiVqQ O2Rg== 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=B0cL2+0XOH0sXm64WhqcbKcw1ykSq6vRHjCBU9tiGVE=; b=JBZDM5xh4Fz7gtuCrTCwcCw8fYIDxNMPj+l6KrNTYq+tuwZdL7jKS2jThl73/+SZ72 CyN5Q7M+zr04tX+OIvQqdoqXYC/ufNFePgnFLx6rJtov5vjYtc9xfNleIBVA/YawPIc2 qzy/pVpcLUw9ThiRDKlZdy8UFE+0PGmmrGNWrx8Ohp0x+qsc2qcnSkvD8TikWRcidi9b NiKk5KZ25nLmL620QqpVBHUrhgFSH9JBi7TtlVI7wWHsA+ah5yIoskt78uUUZq2oZI20 aNMAGYGOA2zAFCNQ9lQ9ycYHp0dgVpzE+lAPnUTbX2ScR6++TMl4B0Ks0AtLesTQ3Snc trNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=InYcXDJk; 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 u11-20020a6540cb000000b005133c334fe9si14242973pgp.847.2023.04.18.06.13.23; Tue, 18 Apr 2023 06:13:36 -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=InYcXDJk; 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 S232160AbjDRNH4 (ORCPT + 99 others); Tue, 18 Apr 2023 09:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232174AbjDRNHx (ORCPT ); Tue, 18 Apr 2023 09:07:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8531E167E9; Tue, 18 Apr 2023 06:07:51 -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 1FAC062836; Tue, 18 Apr 2023 13:07:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7D59C433D2; Tue, 18 Apr 2023 13:07:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681823270; bh=1RvmPCYDV4Dez3Uux0P1QgHAt3cmoDm+toR9aZjB4qs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=InYcXDJkDvsSVeW5yS0Gk+UIaMbdNmzq9reE+YJA/Y5Z3Jb6mOwaBKPhJBao25h2i 856eA+ekkKgNnxNjibH+Ugyg+xNxY/Tb/UqJGKyhTtru8SwRr3Eugw8S5mRrVrtqhw H0Z/rnfD6kY3fvM6KdDCGFIAwcqyBS+N5Fyl1K/eSkq1W7qa6Hl/1hBZEhhfZ3Z/Ki kDa+lFPXH09J9eK7UhVItoXm1Tw+qsbgqsxwISTkU1RiLNeZStf91AF6t19tDDenQt V0lYQGYjPliJLIx/q3SBIUjUd9AosAZNOk03G9mqi00BeFUVygbVcQLhEjDf2Lhr0A aSTkqBWHi47QA== Date: Tue, 18 Apr 2023 15:07:43 +0200 From: Christian Brauner To: Alexander Mikhalitsyn Cc: davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, daniel@iogearbox.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Leon Romanovsky , David Ahern , Arnd Bergmann , Kees Cook , Kuniyuki Iwashima , Lennart Poettering , Luca Boccassi , linux-arch@vger.kernel.org Subject: Re: [PATCH net-next v4 1/4] scm: add SO_PASSPIDFD and SCM_PIDFD Message-ID: <20230418-aufmischen-wischen-5e75b9511981@brauner> References: <20230413133355.350571-1-aleksandr.mikhalitsyn@canonical.com> <20230413133355.350571-2-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230413133355.350571-2-aleksandr.mikhalitsyn@canonical.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, Apr 13, 2023 at 03:33:52PM +0200, Alexander Mikhalitsyn wrote: > Implement SCM_PIDFD, a new type of CMSG type analogical to SCM_CREDENTIALS, > but it contains pidfd instead of plain pid, which allows programmers not > to care about PID reuse problem. > > Idea comes from UAPI kernel group: > https://uapi-group.org/kernel-features/ > > Big thanks to Christian Brauner and Lennart Poettering for productive > discussions about this. > > 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: linux-kernel@vger.kernel.org > Cc: netdev@vger.kernel.org > Cc: linux-arch@vger.kernel.org > Tested-by: Luca Boccassi > Reviewed-by: Kuniyuki Iwashima > Signed-off-by: Alexander Mikhalitsyn > --- > v4: > - fixed silent fd_install if writting of CMSG to the userspace fails (pointed by Christian) I don't have a lot more to add to this, Reviewed-by: Christian Brauner