Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3011222ybz; Mon, 27 Apr 2020 08:27:12 -0700 (PDT) X-Google-Smtp-Source: APiQypIgKAxZPCXi6V5Ka84JfpFzZ9jqGq845oKIWQMLyjGr6LsAPgqjBZ1FiB4njDvccM2fKxbm X-Received: by 2002:a17:906:85c2:: with SMTP id i2mr20997787ejy.147.1588001232559; Mon, 27 Apr 2020 08:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588001232; cv=none; d=google.com; s=arc-20160816; b=VR3yom/JbGqxJa7y7/phtyKs6MRjvYLQtiq5K0HVotYDwV0M+RsbUH0dAOGU7QN5VB /01rmFC41TKXJdVsAPCpfoajTtteH9HyH+RvXqAayiJ37EdgSq6jpBvgZkpwwqcONh4U atuJTSF0cPEA858kK7LwmBYcEIFzdMYL827g88kS2Rsih5mtjdvFBYMY1iu23g+bCcon v0WkeXGTy7k8nstTjn270nb9ZAYE0LMWR6EXP1NZpeEcTyMCAdfXYVrDraQJYJYxrCPh mmZF6B8yrfcbxrpqbqDedg4CWetR3ovTDYmqvjyTNIaaD8UGMHRdu2Xzv1uX+qcAWaBN uE/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from; bh=8HVnTD/Ejvm6IiznLYZ9yXZKSBZxPSu+JiY7s/mXhLM=; b=Tf9RxhxNWc1w+9MTZAoGVOZ5evAD0x2m6odIKn6AiGZ2pM5ugJ2n63x28lBQkw6K5a O1RQu8VR4p0mf6omLRjAL3ALrlLp70kXc29Ww5YlUFFrl7iWe7TrMfjsH3d7eqWUx93P 7J4TPGhzwGwRBqszxd0zAN4eO3Qzk2iq4ENIMN8EUlbzYmEkaMxLIio0RvSC4/XyrFg8 SIaGyDnGgLBk1F0wP0n7PBQcp9vCgvJaEC03RMiUR6NMoWSDx7GePj/0p1MX2wfUlETw 7cpIzQTj2hFvtKXSiR4YzMJtgH80suxtWdMC8Dc7B+Otzb+05SymOJA+aJs0zxTIFLRY I8yg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si8613191eds.168.2020.04.27.08.26.49; Mon, 27 Apr 2020 08:27:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728071AbgD0PZO (ORCPT + 99 others); Mon, 27 Apr 2020 11:25:14 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:34266 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727898AbgD0PZO (ORCPT ); Mon, 27 Apr 2020 11:25:14 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jT5d9-0005kl-2j; Mon, 27 Apr 2020 09:25:11 -0600 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jT5d7-00063B-DM; Mon, 27 Apr 2020 09:25:10 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Christian Brauner Cc: linux-kernel@vger.kernel.org, Alexander Viro , =?utf-8?Q?St=C3=A9phane?= Graber , Linux Containers , Serge Hallyn , Aleksa Sarai References: <20200427143646.619227-1-christian.brauner@ubuntu.com> Date: Mon, 27 Apr 2020 10:21:55 -0500 In-Reply-To: <20200427143646.619227-1-christian.brauner@ubuntu.com> (Christian Brauner's message of "Mon, 27 Apr 2020 16:36:46 +0200") Message-ID: <87sggpeyy4.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1jT5d7-00063B-DM;;;mid=<87sggpeyy4.fsf@x220.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+/020IQ4+UDCdVTdPpbjDBiARVtrobelw= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa07.xmission.com X-Spam-Level: X-Spam-Status: No, score=-0.2 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4893] * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Christian Brauner X-Spam-Relay-Country: X-Spam-Timing: total 249 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 14 (5.4%), b_tie_ro: 12 (4.9%), parse: 1.27 (0.5%), extract_message_metadata: 3.0 (1.2%), get_uri_detail_list: 0.41 (0.2%), tests_pri_-1000: 6 (2.3%), tests_pri_-950: 1.87 (0.7%), tests_pri_-900: 1.50 (0.6%), tests_pri_-90: 74 (29.8%), check_bayes: 72 (28.9%), b_tokenize: 7 (2.9%), b_tok_get_all: 3.9 (1.6%), b_comp_prob: 2.2 (0.9%), b_tok_touch_all: 55 (22.1%), b_finish: 1.10 (0.4%), tests_pri_0: 124 (49.6%), check_dkim_signature: 0.48 (0.2%), check_dkim_adsp: 2.4 (1.0%), poll_dns_idle: 0.53 (0.2%), tests_pri_10: 3.3 (1.3%), tests_pri_500: 9 (3.6%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH] nsproxy: attach to namespaces via pidfds X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am still catching up on the what exists for pidfd. Do you have a way to safely go from a pidfd to the corresponding proc directory? That would make this setns work just an optimization. A nice one but just an optimization. Eric