From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5B5FC77B7D for ; Tue, 18 Apr 2023 13:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232328AbjDRNH4 (ORCPT ); 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> Precedence: bulk List-ID: X-Mailing-List: netdev@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