Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1166055ybt; Thu, 18 Jun 2020 02:05:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjZg2dHkkrVY0xUELbBdwL/lee0oarJPVYO354QRgh8QXOIOCzGyGb2laTFv0S7mDvJXqz X-Received: by 2002:a05:6402:b13:: with SMTP id bm19mr3199438edb.82.1592471153376; Thu, 18 Jun 2020 02:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592471153; cv=none; d=google.com; s=arc-20160816; b=MTwldb5n1P1klINM7+rr+vQfk5VcE59kRDnsEQFmNoCWWglm4//3cfvvIQr1+b/yb0 kHMnW5ip497TNxo/085tzRLoSPTlklQ7+JJPJPwN5RI9TQv+rtZHF/GR8g7uLCFMKHZj 0m9GPY2UapugkDl7qFAry72InezcjF6K4ngAq0y9UzFQoc+SHt4RazTAgHOfbW9wJiF9 BcZshl/EHwlY3hZqqF7Tah/F4ha3OmIsjZIl9BDgOMj9E0viPCTYXcWokmb7IEto3siX QcMcqNSJ2sbh7kEV0X09Z/CrMXAqJ16+BdsHSRSzjOd830PvuM6rerTvbj//2PIEP2NY STYw== 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 :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=ukJv09R/Qizrp9nFuZZGIBUbvRYEDs5U5DFimRDckes=; b=UYfUk+B0RsOpEiGL0RMMNE0+Vjfo8im/yUjj4f+Xl/NdB+2grh1runuGDHXsfBrqSf SW/H7KtatTnmLj3zdNe1FnLl1+bYUKYP9oo6Jt8p33L9C6cV+J3LiVkD8bl4NoHct9om y0YSZszCGWjYeFjtn2vnE49m6d3VlKjutX61PixZPm5iVq5FBac9cPOe0fdpaU3+nGfQ rnoq9g3gi2ngj/iBTL6KYsdi3K8APzua39SDuO2BaC5S9y8bSNPVfratzabmvVYyI3jg MIzLoP/RBG8VL61jcRua0MGdpyHr4wysVe6AlP/KSeH0Ecah1aA4fJ2vzVza4g0UCGB9 8muQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NEKpjfzE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh6si1432814ejb.689.2020.06.18.02.05.30; Thu, 18 Jun 2020 02:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NEKpjfzE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728937AbgFRJDn (ORCPT + 99 others); Thu, 18 Jun 2020 05:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728588AbgFRJDm (ORCPT ); Thu, 18 Jun 2020 05:03:42 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EF27C06174E; Thu, 18 Jun 2020 02:03:37 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id y6so4276204edi.3; Thu, 18 Jun 2020 02:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=ukJv09R/Qizrp9nFuZZGIBUbvRYEDs5U5DFimRDckes=; b=NEKpjfzEQnENYtVnTqsPePe6O8sJTbH7i6p7AN/ITECUpn4yRvjc/PUS4iV1OkpOt+ 5b1kDQFzsaMjlyfGpTAmyUIICcldt7izeU//+EV/uSto3CsDJP/f0lyIX14kUMQ2I0J1 9anYbaTihYa8TpdTbBqmVbKPjWb7RCHHE6VNSsWWA+nPLCDK/iVW3TWLoGd2Ret4KwdJ PGrZ67SXlyxNMudF1w03Cod+i2noYosFmMQB8ULHUy/5ZmgMfDdcvLWFjCSmZYdPfB+y j2k69sa7s9R11sgBok/JRrKhWPzgyIjaYgI0MSq7iazYA7G2U+GjWjNAghLjmGDno9le 58ug== 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:reply-to :from:date:message-id:subject:to:cc; bh=ukJv09R/Qizrp9nFuZZGIBUbvRYEDs5U5DFimRDckes=; b=kvjcOzmAsNVXJCKpY9s9zPAJ9bZBmvyWnHkCA8T9Q96zw144qUSAZrCbW27diG1or+ Nlba1Not7WhQGMaxMqeFpafI3Fuz03WQF2bIVlZq2RqQ+sk2ieIJvrHPeSuvpr5lIKPx pMulIRs3S72Db/WFivgdaFE24AIn7K584GhC6BGQD4CFd/BI4B2BbcFnLEVvU4bbupbC 9CrC3tNLJAfQuaMAIKXbcM5cMSNww/lFoiMy/LDuXUH1auwUcCkpkqTagLE85joU9bWb wEJrfmxySvvNfyOr2iV2WLackv+9y8G34/D6A1sVIH+ldVs7ZZhsSUOA5JzpaBIQontp ywbA== X-Gm-Message-State: AOAM5311C9xRtn5Xmik+L8ALYQ9cqMCMvqqVIjsQGsmcYzXSC3Zo3+PB 4yDjsQkEnCpal/Ada/qyGuw1500e+J0vifEafwE= X-Received: by 2002:aa7:c80c:: with SMTP id a12mr3219176edt.140.1592471016410; Thu, 18 Jun 2020 02:03:36 -0700 (PDT) MIME-Version: 1.0 References: <20200618084543.326605-1-christian.brauner@ubuntu.com> In-Reply-To: <20200618084543.326605-1-christian.brauner@ubuntu.com> Reply-To: mtk.manpages@gmail.com From: "Michael Kerrisk (man-pages)" Date: Thu, 18 Jun 2020 11:03:25 +0200 Message-ID: Subject: Re: [PATCH] nsfs: add NS_GET_INIT_PID ioctl To: Christian Brauner Cc: "linux-fsdevel@vger.kernel.org" , lkml , Wolfgang Bumiller , Serge Hallyn , Alexander Viro 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 Thu, 18 Jun 2020 at 10:45, Christian Brauner wrote: > > Add an ioctl() to return the PID of the init process/child reaper of a pid > namespace as seen in the caller's pid namespace. What are the pros and cons of returning a PID FD instead of a PID? Thanks, Michael