Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6462110pxb; Tue, 15 Feb 2022 03:01:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkPB3+4O5LdjP+9azlVxff9/XJloG/+6NkMR+sU8TV4rQB+m3zu9gh2fHILYbxgRmNEAWO X-Received: by 2002:aa7:d703:: with SMTP id t3mr3292770edq.376.1644922917162; Tue, 15 Feb 2022 03:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644922917; cv=none; d=google.com; s=arc-20160816; b=eN/t64nhgLGUUIdQ/olHKs8js7Hk2Gp0J3jEv6i+seS89v1T1MKa6k2+jmgh/JhAjq oEuBx99N9N1TO5+MRow4GiPGjmOpSR34jDIY+29sQgoyX6+k5R1I1ntzJfeUYtPfuSI/ qZUEZMvoP/Z3c19nJFwUQ7WGrMOSDACaqOBSoLRzZjO3xqdFHU/jkZilpI9OA/G6Himf yGlDN19U9jYkgQz3BVmonKhAvb+6w7tN1w0YF9Tv/+0aBJMX73JSWct8ItwNjZgZEntd 3FcFIysvbYMob1q1WyakE8Ue07IQ0JWuPU7/jdQR9Hf/ul5K1KtnDp+eYN6DKZYK5BWR uGWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IBcOuKd0LOYeF5+y7S2lOA080trYx3ZHTlWXhiJlqiM=; b=xGJymUDt4UhJLnyG+k8YeZrI6qGbJ6YuLLEJb34ZKoiNaz1vn43eLcCFjuDGKNZwxk 7RvT/aOfMvTqLeWgpAbkOaabEYjXMYr3wbu2XRiVff5FdeiaZf/7JbdZALXezwS2vXpq V+AJ8hjJ5uOqCpxLmpotR2loFb4WAnpqGxiDWzWr3xmhYsMBnSyoq4l+x4A7NZYmHCO7 iU8ZC6el+4zhoEqAJuW96Y2kdknYg6B6N9Ql1K+gEda7v8OiTLtGfVhYKy2KVuvlYywF d6/mNHtxdAbiJFXzabW2Q29kspYxva5dJlRoznVg2rbAK9dWUQx1ozRdMFkz6JdaJD6h eJAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=RKv0NNZz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz21si10463072edb.424.2022.02.15.03.01.34; Tue, 15 Feb 2022 03:01:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=RKv0NNZz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235946AbiBOJfJ (ORCPT + 99 others); Tue, 15 Feb 2022 04:35:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235024AbiBOJfH (ORCPT ); Tue, 15 Feb 2022 04:35:07 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81BEFB717F; Tue, 15 Feb 2022 01:34:58 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 42B13210F3; Tue, 15 Feb 2022 09:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1644917697; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IBcOuKd0LOYeF5+y7S2lOA080trYx3ZHTlWXhiJlqiM=; b=RKv0NNZz2vBgTJcZ0fO+arxVBI9zO6VahdMKsSTqlCeUr4+Vg9mEvZDquASiPPu6y3tpCC BE6atyFpa4Ctv1uLzATw6and2QdjoBCXx5tLrQ/hdWn7j1YexWJl/AJaJM30ePgRs+sTZq BhpsSVt+Zd1tn5iECmMj61CICB0Fd3U= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 18A0C13C36; Tue, 15 Feb 2022 09:34:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id liBQBcFzC2LbAgAAMHmgww (envelope-from ); Tue, 15 Feb 2022 09:34:57 +0000 Date: Tue, 15 Feb 2022 10:34:55 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Shuah Khan Cc: Eric Biederman , Alexey Gladkov , Kees Cook , Shuah Khan , Christian Brauner , Solar Designer , Ran Xiaokai , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Linux Containers Subject: Re: [RFC PATCH 6/6] selftests: Test RLIMIT_NPROC in clone-created user namespaces Message-ID: <20220215093455.GB21589@blackbody.suse.cz> References: <20220207121800.5079-1-mkoutny@suse.com> <20220207121800.5079-7-mkoutny@suse.com> <789bda88-1ef7-8c60-5c00-d3b7a2b8588d@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <789bda88-1ef7-8c60-5c00-d3b7a2b8588d@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 09, 2022 at 06:25:34PM -0700, Shuah Khan wrote: > Does this test run in non-privileged user mode? If it doesn't > let add a check and skip the test. It requires user namespaces created by the privileged user (to bypass RLIMIT_NPROC on the top level). I'll add the check into code. Michal