Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2648413ybb; Sat, 30 Mar 2019 10:05:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqynlwS2Xjvn+0/inrDvd7+O1L4Q/Gn/eQUyRnpKcrA0c2xtngq9qlAN6T4o2QY5eZUIlhce X-Received: by 2002:a17:902:7e4b:: with SMTP id a11mr55295259pln.219.1553965547792; Sat, 30 Mar 2019 10:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553965547; cv=none; d=google.com; s=arc-20160816; b=Q+ls/AIgMw7pTp9Tc6vnqIEGkWbRDFpVRU5ki42cCa4nyl0VyscoK5M6ogjH5wmNJw iT9GQvAjrdRW/Pt9xnnmkJjQJHRSDUIx1uggpsVPAxCKr9z74Hj0IY11x5sAEW6oQ2gW TqCCyLm15N0QZL59zfr/+XSTnkEqwPetaZwIOmMS+dDmkrQJGVFzijjJR+OcnbbtE9iw s5bYVne4tHErbLQyfNb4yQVoTD1gIzenkONdx0miLHx81O0YKK/74NIhMxnWUmc+RwcZ rED8a+7lOQbQmE529l8Lq73q56CtK9Yj7IFvfpcUbOHNmQUMyTzVZjRKGiPpqrY2Ldnd pPCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=MN10xuYvsg8+eHsG3Gm0v0OowWhETkrtz1/BCJnHmYw=; b=EgdnQqNynDgMCmEiykk3llOhvjx0vQB+2bhcPXf+b9mC9vocjshxkIRBFD2ZSRdbOE 0R8wEDnJhtl9pJaRB7qmD2Lx0dpCSNfgKq5hXK0Rxi0vn/nGEBs3hD4CnWlFL5ju+Kuc ilrprpb+mjo8metbHyY42Di9TJ++hxqG36CUJoqxR41kcrm6epthpIkZ7MyExfClCBn2 zV3Rk3dtrtRLLsDU7EiG9ggRdCyu7OM2nee8wpBGAsq6vYLIQaSFjBunCb9W1ePR/Ejn Ss/kXGvNgkSI//dAaDc8fCh06j0FCIAUp2/aWiAqwTEwcm8P+ogYi2IEL/8opMo6xId6 TF/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FUNTAiDi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y191si4696830pgd.218.2019.03.30.10.05.29; Sat, 30 Mar 2019 10:05:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FUNTAiDi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730537AbfC3REx (ORCPT + 99 others); Sat, 30 Mar 2019 13:04:53 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:36453 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730154AbfC3REw (ORCPT ); Sat, 30 Mar 2019 13:04:52 -0400 Received: by mail-lj1-f194.google.com with SMTP id r24so4579034ljg.3 for ; Sat, 30 Mar 2019 10:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MN10xuYvsg8+eHsG3Gm0v0OowWhETkrtz1/BCJnHmYw=; b=FUNTAiDipswLqNNPgeZ7vSuRVYSCtnYlT1nREDZfpW5iyUe1cAvLGZVjNFkFAbsdYy 62yWD1QS9vwDjoExF1XdMZua/vOAHABjX9srfjwpHNBocdifxMUdR4KlABofZewPh1bU +43++QHC2Y0jRsuxIVSSGNCrq0CO24XohHaQ4= 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=MN10xuYvsg8+eHsG3Gm0v0OowWhETkrtz1/BCJnHmYw=; b=f1f3LehTMVb63UOeFM+jHdKmGJeAzS4tSYX1MU5DX1AoXzj2EJxb1pI4KmyS2ADNMV 6EqVjFhKI2LJEh9lzQ2k85JHaSI6emHA5K6orhmqNqr2I5d79fTzcQhVuwqRLCIbxEy2 Oq6WELK+LHB1hLs7DuNtudD5apAOPbDhIN0pJ0VzFMYabIDNzeDAuyw18bG5jPtcmZmO VaSQl/D5zY+z01Ffmy7BHfZ/S0Rs/1L6yzsfFdYNKQuBdTTvtX0zKJUEkAlrZmz+083d CCQ/1hqN/RKsTohbV1XurTGTe0qNathY8ZROrY2z1cSszmGYrbxt7yqY90BhGvfv9pGR 25rw== X-Gm-Message-State: APjAAAWCngnfpDe9+qXhgDp2PapErm1Hs5gWw7VOcObY9nVNhB2c9GAg o5YfjQDjDl8N55I7ol7vep/ax0/fdi8= X-Received: by 2002:a2e:4e12:: with SMTP id c18mr25396424ljb.3.1553965490686; Sat, 30 Mar 2019 10:04:50 -0700 (PDT) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id k90sm1017553ljb.89.2019.03.30.10.04.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Mar 2019 10:04:50 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id k8so4557669lja.8 for ; Sat, 30 Mar 2019 10:04:49 -0700 (PDT) X-Received: by 2002:a2e:8149:: with SMTP id t9mr29953441ljg.2.1553965489694; Sat, 30 Mar 2019 10:04:49 -0700 (PDT) MIME-Version: 1.0 References: <20190329155425.26059-1-christian@brauner.io> In-Reply-To: From: Linus Torvalds Date: Sat, 30 Mar 2019 10:04:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/5] pid: add pidfd_open() To: Daniel Colascione Cc: Christian Brauner , Jann Horn , Andrew Lutomirski , David Howells , "Serge E. Hallyn" , Linux API , Linux List Kernel Mailing , Arnd Bergmann , "Eric W. Biederman" , Konstantin Khlebnikov , Kees Cook , Alexey Dobriyan , Thomas Gleixner , Michael Kerrisk-manpages , Jonathan Kowalski , "Dmitry V. Levin" , Andrew Morton , Oleg Nesterov , Nagarathnam Muthusamy , Aleksa Sarai , Al Viro , Joel Fernandes Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 30, 2019 at 9:34 AM Daniel Colascione wrote: > > Just to be clear, I'm not proposing granting secret access to procfs, > and as far as I can see, nobody else is either. We've been talking > about making it easier to avoid races when you happen to want a pidfd > and a procfs fd that point to the same process So I thought that was the whole point of just opening /proc/. Exactly because that way you can then use openat() from there on. Linus