Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2619680ybb; Sat, 30 Mar 2019 09:21:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfSlJftejQL7TOFlExcvD9Pv00e0T6QKBIgMTywzyi54Tt4PtraYot1mXOW3xrMptSCqmW X-Received: by 2002:a17:902:f084:: with SMTP id go4mr55916695plb.15.1553962917112; Sat, 30 Mar 2019 09:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553962917; cv=none; d=google.com; s=arc-20160816; b=SFlIgLEhLw2yoiuLHgKTV0Qj1VwcjW7eV/vmlaEHJVEkWKnDTfsLXRjPuRkrUN9Yzx fxhxWL4QirmSnE8B86M26h+Qsct/r3TRU9eZp+Ek1wOLt3bMVkPCZ71y3SZg9gCeBO0H Er2GpVPHC+O6YDxy+Pgbs4l0/QF5qypMiwswQfbNqhr+fLCT4S4U0nhy45d/2PH2lIBV Z2xeRtIla8AFTEnJKGhMyDjLtbbpEo9yILFS14oo+oRBX27n+FLU6UXwkemKXkft64F0 j3i6vwkfVodbuQdVFumNBNp781hvtaAaUxCliEdf6gdU7AnV94PrRdgsCiZbuZ3HJlHN ixhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=ernJGglIMT4+VghNiZOzqrUEB85/gc2EJjQrVTUa6Ug=; b=DqOYSplTH1ljvT+PUKnBgut1LttWo0neJOcNlu3lurmb60WaS/EFZ+lIaR9oIVhIxU Gb7c03xcKk7sO0myYQ2asLwOTW47CIuFTUxs9HHumdxW6ysOinIezTXdlK0W7OABk/Gb aNZ7oaRwUlITrkqPbTY2J7GS0ywLrVvEJ5HiXnI9T+f2NnINOvac1aguqpCyuKgV39sr yMSvq2H5gVosUDccGLmZS51ZF4oMw2u7ouhY9g8t7y0LoM5dN1sHzcLZqdSgJBl9hLcD zjdcJMzwh8x/6oc0wIZ9OylsFjBOB4CZN/HzjswgFWLFNGnCqSTcwRbGBtUxJE/o1DkN ROpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@brauner.io header.s=google header.b=M0NtndlD; 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 h65si4814819pfd.232.2019.03.30.09.21.41; Sat, 30 Mar 2019 09:21:57 -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=fail header.i=@brauner.io header.s=google header.b=M0NtndlD; 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 S1730971AbfC3QTl (ORCPT + 99 others); Sat, 30 Mar 2019 12:19:41 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:42691 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730841AbfC3QTk (ORCPT ); Sat, 30 Mar 2019 12:19:40 -0400 Received: by mail-ed1-f65.google.com with SMTP id x61so4546661edc.9 for ; Sat, 30 Mar 2019 09:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=ernJGglIMT4+VghNiZOzqrUEB85/gc2EJjQrVTUa6Ug=; b=M0NtndlDoTUOJViHHBJbfpgMzMvYz5SEH0W6ZXovwpdV0L+TO3vgAJWxxFr6E9+wTh D2fCDASHQFVeyPnEKhcu2umRxOiAJ4RlU9HbHMjerwLIbq+xkUd0UNvta2dxn2n7GrHa YthXtZfCS2gWlzCN6CiJs1V+ylGXgCQofGZNyg323N0BmPkpgHb0Sb/Xd5CNENtQlQAq Cz8tfmxA83hycB2B9bLZ+urPGstPD0NioznekJFbrVKhvJLOpGFr1cxKyzfFIMuWt+6d jmb3YCuxpcQBpTnDarOU4yqj074CtSQ5AxVm+K3fqL90JZ9vIpFjdHldmYCQBKNGwe+8 CyrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=ernJGglIMT4+VghNiZOzqrUEB85/gc2EJjQrVTUa6Ug=; b=PAinNB0Eulc+a4zbObWEh75/1BD57SuRSpl0OF8xF9kcTShGfpoK5gv3mACbn4sbUo clqz1l+qecTkUgIaA7qdPXwM00t7PL8mmpGHdT/OyZWyc7a/Q/NgfX7lfF41r8keCaID cP+uBW8Ppji1IvM+7dEwpyB8+qLGCJd2imtCjXEFhNkypgPN4OFlpMU/zfZXIUQb0y9D EA5AnAsCeMFO/mPrBkXQLxm3aehxm3R9Qe4nl/ZAslfTj/1epcfW3lt4Y6xuZ5xo5Z84 E557fnA+eqqQhpmcd4voVsF8+SuX+B5KEQatob4+8H81wbbpYIL0/DwzqsnrRNBpGPA4 1bbg== X-Gm-Message-State: APjAAAXuRdT5XYP3U0cs0/ys7DMiF7zhOTby+uTDbEqgatxT+P4wzl8h FZ3GHXjzrVgL8qsls/NpQOeipg== X-Received: by 2002:a50:8561:: with SMTP id 88mr21150275edr.101.1553962778713; Sat, 30 Mar 2019 09:19:38 -0700 (PDT) Received: from [10.38.1.125] (x59cc8b7d.dyn.telefonica.de. [89.204.139.125]) by smtp.gmail.com with ESMTPSA id n3sm916383ejc.32.2019.03.30.09.19.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Mar 2019 09:19:38 -0700 (PDT) Date: Sat, 30 Mar 2019 17:19:32 +0100 User-Agent: K-9 Mail for Android In-Reply-To: References: <20190329155425.26059-1-christian@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v2 0/5] pid: add pidfd_open() To: Linus Torvalds CC: Jann Horn , Andrew Lutomirski , David Howells , serge@hallyn.com, Linux API , Linux List Kernel Mailing , Arnd Bergmann , "Eric W. Biederman" , Konstantin Khlebnikov , Kees Cook , Alexey Dobriyan , Thomas Gleixner , Michael Kerrisk-manpages , bl0pbl33p@gmail.com, "Dmitry V. Levin" , Andrew Morton , Oleg Nesterov , nagarathnam.muthusamy@oracle.com, Aleksa Sarai , Al Viro , Joel Fernandes , dancol@google.com From: Christian Brauner Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On March 30, 2019 5:09:10 PM GMT+01:00, Linus Torvalds wrote: >On Fri, Mar 29, 2019 at 8:54 AM Christian Brauner > wrote: >> >> /* Introduction */ >> This adds the pidfd_open() syscall=2E >> pidfd_open() allows to retrieve file descriptors for a given pid=2E >This >> includes both file descriptors for processes and file descriptors for >> threads=2E > >I'm ok with the pidfd_open() call to just get a pidfd, but that From=20pure API perspective that's all I care about: independence of procfs= =2E Once we have pidfd_open() we can cleanly signal threads etc=2E >"pidfd_to_profs()" needs to go away=2E > >If you want to open the /proc//status file, then just do that=2E >This whole "do one and convert to the other" needs to die=2E No, no, no= =2E > > Linus