Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5740722ybp; Tue, 15 Oct 2019 04:27:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPprGJjge/PWuYGOPblGFV4c6XYIs1luU0/6RVHHTc0UO72kBMEcZCeOEnw4l7hZGPsBX0 X-Received: by 2002:aa7:d4d9:: with SMTP id t25mr33137147edr.76.1571138830875; Tue, 15 Oct 2019 04:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571138830; cv=none; d=google.com; s=arc-20160816; b=LboS+5/YPCV29jCORsLY4OF783NOTzocgk8hqGD9hk+5DftWBQnC+h93HJEZZfEbXT DvfndJbduCoiK1D0ifLZM1ABF2xf2zgseaAVBu72jkoJmweu6v37E2mZyKO5+Jj3ZPon bKSbnCUSn6Hledfnj57RDhPmMa8E0kp3Puc0Fc6x0PI1Rs1SLpIc4fBjpAexHm9bPvx/ gnR2gMYq/e1+ZfW6rLHQhHrd4218LuHkNzA+YjDlakahRXAIDaFOuHZU5CsDJt/w4eN8 uRU3SeYnQUFbQozgoEVzsAkdAZKdWlHR28Xhss8LsIov/RTz+Z7UcO2bwXJOdx7RFJA4 jf6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gV6/muvkBHIfgvxk7vPZM+OZyFAoRWTlJ1OutEbc1gA=; b=WDnm1ICrK95skp/Um1cUSTd4o9/pU7S44appLiQSFOLi4ohyeeFFP5bSRcKo3zrJAW IgjulgRaQQHZqoxo4TqJSFX9CCouXTT8Dr0U/rNBYrpfrcxBhc6vMoEUUFwjBlvEUpBU 4lfrO7tWtFdZOavb8TIu27ePhG2r5HkFhAU1RDRUJxWuHm4RpDTR3ifpYAiggJkC/J5r IS2oeXvL/4GIQkv3Gq6G/Mf/fG5h9i8fZnfQ9fMrkhMl07MYksjkf7ItRq+lO5VDsPRl UMgE/8GPNx0XxtgCIZZmb4rHQtg+D5bki5rKZLtShA5mbTNt3Id35Yn6oBXhxT2fjkvI b16g== ARC-Authentication-Results: i=1; mx.google.com; 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 w14si12768652edx.197.2019.10.15.04.26.47; Tue, 15 Oct 2019 04:27:10 -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; 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 S1727690AbfJOKHu (ORCPT + 99 others); Tue, 15 Oct 2019 06:07:50 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:34227 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbfJOKHu (ORCPT ); Tue, 15 Oct 2019 06:07:50 -0400 Received: from [185.81.136.22] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iKJk3-0005A2-Nc; Tue, 15 Oct 2019 10:07:47 +0000 Date: Tue, 15 Oct 2019 12:07:44 +0200 From: Christian Brauner To: Christian Kellner Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Jann Horn , Christian Kellner , Christian Brauner , Shuah Khan , Andrew Morton , "Peter Zijlstra (Intel)" , Ingo Molnar , Michal Hocko , Thomas Gleixner , Elena Reshetova , Roman Gushchin , Andrea Arcangeli , Al Viro , Aleksa Sarai , "Dmitry V. Levin" , linux-kselftest@vger.kernel.org Subject: Re: [PATCH v4 2/2] pidfd: add tests for NSpid info in fdinfo Message-ID: <20191015100743.t6gowsic7c347ldv@wittgenstein> References: <20191011122323.7770-1-ckellner@redhat.com> <20191014162034.2185-1-ckellner@redhat.com> <20191014162034.2185-2-ckellner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191014162034.2185-2-ckellner@redhat.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 14, 2019 at 06:20:33PM +0200, Christian Kellner wrote: > From: Christian Kellner > > Add a test that checks that if pid namespaces are configured the fdinfo > file of a pidfd contains an NSpid: entry containing the process id in > the current and additionally all nested namespaces. In the case that > a pidfd is from a pid namespace not in the same namespace hierarchy as > the process accessing the fdinfo file, ensure the 'NSpid' shows 0 for > that pidfd, analogous to the 'Pid' entry. > > Signed-off-by: Christian Kellner That looks reasonable to me. Acked-by: Christian Brauner