Message ID | 3f2ec6f5-3d66-15e5-ad3a-a8709a254273@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 73812601D2 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 31 Mar 2017 15:25:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 661AD28616 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 31 Mar 2017 15:25:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AC52286CB; Fri, 31 Mar 2017 15:25:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3F5828616 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 31 Mar 2017 15:25:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933382AbdCaPZ1 (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Fri, 31 Mar 2017 11:25:27 -0400 Received: from mail-eopbgr40122.outbound.protection.outlook.com ([40.107.4.122]:17312 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933140AbdCaPZZ (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Fri, 31 Mar 2017 11:25:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZAXQPqsscJGGP8/pMoWeZgn2Q69nd4f+PBpavt7Kx4Y=; b=hzrJzZfnzXrR20xKRdCWHKdLGBtJD2u3JUIHKoC29NS5We5wIPDEYkRKq6c6ofHmgy2Rp3huyR3pN2mrDd+70ghfP3/fPWLlhtQWn4n6KQZboNL8Z7A2h0Et0DCjE8yj76kQwrXEh4/CrfI4w5vW6UoWRnMc1FPGovRtU9y8xmg= Authentication-Results: hallyn.com; dkim=none (message not signed) header.d=none; hallyn.com; dmarc=none action=none header.from=virtuozzo.com; Received: from [172.16.25.3] (195.214.232.6) by HE1PR0802MB2283.eurprd08.prod.outlook.com (10.172.127.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 31 Mar 2017 15:25:17 +0000 Subject: Re: [PATCH RESEND 2/2] pidns: Expose task pid_ns_for_children to userspace To: Kees Cook <keescook@chromium.org>, Michael Kerrisk <mtk.manpages@gmail.com> References: <149086931397.4388.9604947335273204415.stgit@localhost.localdomain> <149086967937.4388.471494976517194744.stgit@localhost.localdomain> <20170330150520.1bdf20e599ff464bda0776b9@linux-foundation.org> <20170331010409.GA22895@outlook.office365.com> <0825f166-6f20-59a9-45a9-5ffe9009150e@virtuozzo.com> <CAGXu5jJYTrOB1A0V9V8NOtLUF_D52RwtqFUcfsCiC-Jm3Z5G2w@mail.gmail.com> CC: Andrei Vagin <avagin@virtuozzo.com>, Andrew Morton <akpm@linux-foundation.org>, Andreas Gruenbacher <agruenba@redhat.com>, Linux API <linux-api@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Al Viro <viro@zeniv.linux.org.uk>, Oleg Nesterov <oleg@redhat.com>, Paul Moore <paul@paul-moore.com>, "Eric W. Biederman" <ebiederm@xmission.com>, Andrew Vagin <avagin@openvz.org>, "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>, Andy Lutomirski <luto@amacapital.net>, Ingo Molnar <mingo@kernel.org>, "Serge E. Hallyn" <serge@hallyn.com> From: Kirill Tkhai <ktkhai@virtuozzo.com> Message-ID: <3f2ec6f5-3d66-15e5-ad3a-a8709a254273@virtuozzo.com> Date: Fri, 31 Mar 2017 18:25:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <CAGXu5jJYTrOB1A0V9V8NOtLUF_D52RwtqFUcfsCiC-Jm3Z5G2w@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: AM5PR0101CA0005.eurprd01.prod.exchangelabs.com (10.169.240.15) To HE1PR0802MB2283.eurprd08.prod.outlook.com (10.172.127.13) X-MS-Office365-Filtering-Correlation-Id: 3c98eb98-bac4-4006-2216-08d4784a23d6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:HE1PR0802MB2283; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2283; 3:e9BHpGhrBgFjcsrGGh+k6ky7HaBZtpjQyIiR/jCcRtae53Szp4WtT5oGoOiXIIuTlQBPYjwiZ5bFAu9KQlGSOim/5wRcw3XBJdfo7AW9/AD9+4vzSLKkd7ETWJB8zwG8sjlwGF+GHYQqFrP1upYaQsTCA3zP589jE2ayL6CbFmRmlmD5htdcAGyA2AL+pFNpItsh9a5+i73gxT4wm5sH5Sj6vgNDBOkQD2VE8HMyJ+io5CvUhXS+rIphcSxrKbai3uCdZHNJRMGQObb0Px+Sm1dArNmyKOGYTZbmXR61FbP7eACsd8l9LlvEECcr7NxxNVH7inFxV0rWm6mkYSAntQ==; 25:640OQC3YKSTjW1Kg9zk6VkArAyh+eI3WzTGdR6XQoQhzhgJpMlP9T+4V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EMN5Bu+eKFWrZQ1hibnleuoN37gjUu8Ll7jW3SVXGg= X-Microsoft-Antispam-PRVS: <HE1PR0802MB2283AAEB95D836BDFFEA8F62CD370@HE1PR0802MB2283.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(84791874153150); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123564025)(20161123562025)(6072148); SRVR:HE1PR0802MB2283; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0802MB2283; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2283; 4:WE/Eb1sM+ksh/h9CxLDEwovXgZUhMsw1Bj+LXiyztQ7iNn3HSWef+jvaO5JJygx8Ty2n36pJweATOIk+QkSQEKd9XRIKGiTeEW2NMw6R9wla4crqsJDMMY8PPMGcUZqJQlV9r03fn5PrhcMNg8XNEWAOQT7gQs5dSwPsw/I/qwpngnMpH2f+uBvJ6hJ/sFPLybqwqjGY4KDjhvmFB0AVf6PtVc/U3Y6LQhxF8Amxzzp4AOsmd+ahhG1YCTPK6lZfVnhZKXUpwTPGTtngWCm0hanpfo+deCNXERK4Ml9NwRtJOk8COuTgC8Yg136L3MPzihmk/mE1iUOuWjLRSAYOq7O2PLFSwb3SZnb4z7dT/GgGrtfpQRPwd5rg21UN5QdYeK7XveqVlGu7n2ZuM9ZHzjrn96nNThRj0ZSeD+augOLm2YNnZsjpsszZIK2rawNBlWAL9oaoLw4pbAoV5uBIPyTz79gobqJZPf+iTFUR902bHK/j3Tip/ikjqgTm1npxB1vfPNdWvmXjtmPGWRoXBTBaTqli3Je/YzZCL7yjDXkoyMHg95G0PGCVA6lOwPkqCh2NcpraecWcrdlARd2/Ab8DKbSrhxSQQ1jeFPf2+aHPwu4mkMQUrsqmF5K5WVz8aNo7M7+dVW/1ZRGdC7omfW580eBfps8QegQyZ3sfRZy1+E1HNZ47gRpCjzFH9/uXtD84E6F+0KEhn/br07lZJoN51SQf7sjucnNOUAiHNuRvusEIRKYoZfiMC+tZ/tdzyAEOSrYVX7RgoI6IslaQHQ== X-Forefront-PRVS: 02638D901B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6049001)(39410400002)(39840400002)(39400400002)(39450400003)(377454003)(24454002)(230700001)(31686004)(64126003)(42186005)(54356999)(8676002)(50986999)(81166006)(33646002)(50466002)(38730400002)(6666003)(76176999)(23676002)(6246003)(4326008)(53546009)(25786009)(6306002)(2950100002)(93886004)(189998001)(53936002)(54906002)(47776003)(66066001)(65956001)(229853002)(77096006)(6486002)(4001350100001)(2906002)(305945005)(36756003)(5660300001)(65806001)(31696002)(3846002)(6116002)(7416002)(83506001)(65826007)(86362001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0802MB2283; H:[172.16.25.3]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4MDJNQjIyODM7MjM6dnlhZTdZQ2h0aVhMN0FkOWFuS2t4NnRH?= =?utf-8?B?UW9TRWlGNE9qOFBoOVpSN0MxdUd1Yzl4NWR2TjloQVFEN0tjTzF2WVp5QXFy?= =?utf-8?B?RUFReWdURnZlQ05MdnVvc2p1U1FjTmZMa3YxMXZWancxa2UxeVVzeENiU1Ja?= =?utf-8?B?eW5qWHphajZaekJNcWRLaTQvak5UeXFDSUFlQXE4M1BkaVZRaExWVmlmdGZ6?= =?utf-8?B?Qy94TFZSdE1rTkJKeVJQcnNUZ2laQUV6eTRkWW9MejF4ZzZzcTZKckl2U2hz?= =?utf-8?B?R2pRT1ZZRUM1M3RpZDVtZHVwUUVDbXMxdllzektEd1FFZEZ4UkxZUlpoeThC?= =?utf-8?B?TE56a2VZQ0hhdTRYS2x6TlRzNUNXTHZwOUwzQlkzRGFFYzZmSEQ4MmhQOTR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jIiLdBh4k/qoPjfEVB7I3zEqsfQ8+oqj9WDjcHEDTawLwFsb/qkTCqxzL+n6jm3qNs+p31c/dA/xIDZDwWh5gkpp/dTmvARsKoYD2KMpNA==; 24:MCv3m3kHfxmDNJmyaOGM7zL2Q09uPqtquGRziF7xzQOGvvzzN3k8kBjvNbIer9HCNXFmYTWGLtmBKkagHMM7y07a1jkIb9lWdVqd3SItmks= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2283; 7:IlHarkZ5orRPo/KNlNXlGwYCJipIP2Xe+7OgssEUZyDhI5M5O8+QB4dYw1B5PoJ+j6BZ8LurCiQBpTYv4zgx5IiT0yjTNgeOXD85wvMW4unVsMBSrrPq57QAZpN12D+y0QuNr22rN8mqQgZiK5sJEsRYTBQ55EmR6cMLEslkNaA/udcdyGueEdQ7E3PzdUvrOftqyMEOl4eUvucsFsR94eosAwKHGJTRD84Dzdq7DsJxnTkDmL1qhCoxF6FSEBaZ7ggyMBIh8mTxIqBZ8wRMKtRagcF/StYf/8SNUqqIxK7IDqGh0Sqow3YhyFSXuARY6x8JZZM37keD6xflcLm1Ng==; 20:KcsXH9REWYxz28znpTlym0xgMaTbm/DiUuh1Ie9SL2Y7Ys1UFEDYI1Oj6ZwWFmD0vpfvcdISg9B4zARKUypSkQ0WhbEuZfcFyBReSFJSvqIC5Ukpuo3yi2IlLq0t+Q6jH0pbSmEHDjfEVqUlHwqBgBU4OrUDKKjjc0o5f6iY/1w= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 15:25:17.6089 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2283 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/man7/namespaces.7 b/man7/namespaces.7 index 6dfceaa2a..b4e9b13f0 100644 --- a/man7/namespaces.7 +++ b/man7/namespaces.7 @@ -125,6 +125,7 @@ lrwxrwxrwx. 1 mtk mtk 0 Apr 28 12:46 ipc \-> ipc:[4026531839] lrwxrwxrwx. 1 mtk mtk 0 Apr 28 12:46 mnt \-> mnt:[4026531840] lrwxrwxrwx. 1 mtk mtk 0 Apr 28 12:46 net \-> net:[4026531969] lrwxrwxrwx. 1 mtk mtk 0 Apr 28 12:46 pid \-> pid:[4026531836] +lrwxrwxrwx. 1 mtk mtk 0 Apr 28 12:46 pid_for_children \-> pid:[4026531834] lrwxrwxrwx. 1 mtk mtk 0 Apr 28 12:46 user \-> user:[4026531837] lrwxrwxrwx. 1 mtk mtk 0 Apr 28 12:46 uts \-> uts:[4026531838] .fi @@ -186,7 +187,14 @@ This file is a handle for the network namespace of the process. .TP .IR /proc/[pid]/ns/pid " (since Linux 3.8)" .\" commit 57e8391d327609cbf12d843259c968b9e5c1838f -This file is a handle for the PID namespace of the process. +This file is a handle for the PID namespace of the process. It's +permanent during the whole process life. +.TP +.IR /proc/[pid]/ns/pid_for_children " (since Linux 4.12)" +.\" commit FIXME +This file is a handle for the PID namespace of a next born child +of the process. It's changed after unshare(2) and via setns(2), +so the file may differ from /proc/[pid]/ns/pid. .TP .IR /proc/[pid]/ns/user " (since Linux 3.8)" .\" commit cde1975bc242f3e1072bde623ef378e547b73f91