From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7978C433F5 for ; Tue, 15 Feb 2022 09:35:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235950AbiBOJfK (ORCPT ); Tue, 15 Feb 2022 04:35:10 -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) 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