Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp733954ybb; Thu, 28 Mar 2019 11:06:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrEzc8rLSysbFGG7OnhvG0eYkMOLH0EGOD20GCJEK/Af0h7kLaRM6a6h7HNHK+ugkSVjFP X-Received: by 2002:a17:902:3:: with SMTP id 3mr44618889pla.114.1553796365609; Thu, 28 Mar 2019 11:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553796365; cv=none; d=google.com; s=arc-20160816; b=xHG17Dk42rZvcyzZXRTIHcrHPVPJwKQqGD/7HlirHuvGFCU4tRXmn/E1G9umBuUd8O gMkwDo8o2UFV3BB0k3r/k7KrBsY2sSjDCmLNYlueKORdl1tac+yLNa/qe6/P/5VzBQfk Sdaf9qFgphbWj9B1eKk6typx9Toc0SWPMiYZWBVpjLJ9QNF0Pmpxxp9guVPMzk3TAYd6 dM1Vq6oeUha1IL8J3TdOliEbzQtBKRrO/5zljFvj3a5GInFdPE7GdNj32nFsdEXifw6r XleGy35MnILAddCLIp11QY+WTuGpYpbPFrVIKJ6JT4g87nD5lplTS7PBlk3J44k/A6rb oy3w== 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=gfK97RvWA13ROOII9IBauOiE/XLMPiQ8wf91mmSpBvI=; b=qLrABqFIkr1VNM2UUsrlumL1iMzhPmAuKpLucaD1aiUTxbK1eqtHsb4sYPLmYP+XOW sWX64Y5P3dk+joBx5kuUjR5zAVTYfunqj10qp2K8hfgSlGlB55cdsdZHrO4hLcVLMthv iNOKN8s/Q+ugEAuIHKAzN+UYogj4Ee7ZRO1wpAEjTOSePWpV0dswo44+J1Hba5eblVao X83qABycfiG1UFamdEGyF/V5piyXgTDzL04KlJjxOfvvFpHKnXsMWCxcqKJQRPPObRWI qR5a3I/J2ozhK+Hm8AWrAMVKjlfn9OoRnrfsjeloq+/2JUsIUFULksLOqS+b4as1mVw9 5OZA== 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 12si18470720pgu.111.2019.03.28.11.05.49; Thu, 28 Mar 2019 11:06:05 -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 S1726751AbfC1SFE (ORCPT + 99 others); Thu, 28 Mar 2019 14:05:04 -0400 Received: from mail.hallyn.com ([178.63.66.53]:43072 "EHLO mail.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbfC1SFE (ORCPT ); Thu, 28 Mar 2019 14:05:04 -0400 Received: by mail.hallyn.com (Postfix, from userid 1001) id 2FFAAA74; Thu, 28 Mar 2019 13:05:03 -0500 (CDT) Date: Thu, 28 Mar 2019 13:05:03 -0500 From: "Serge E. Hallyn" To: Dmitry Torokhov Cc: "Eric W. Biederman" , lkml , "Serge E. Hallyn" Subject: Re: Allowing mapping supplemental groups in user namespace? Message-ID: <20190328180503.GA16249@mail.hallyn.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 28, 2019 at 11:27:38AM -0800, Dmitry Torokhov wrote: > Hi Eric, > > Currently, unless caller has CAP_SETGID in parent namespace, we can > only map effective group id in the new user namespace. Would it be > possible to relax this rule to also allow mapping of supplemental > groups (1:1) of the caller? > > Thanks. > > -- > Dmitry Hi, Is there a use case where adding those to /etc/subgid is onerous? (There probably is, just would like to see yours) thanks, -serge