Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3519632pxb; Mon, 4 Oct 2021 04:13:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycQolOnN8kChVC282eR6kXlMaeMU/7N7DxY6fMEl8ErIQN30sUM7o6vzO1nib63tgodFnE X-Received: by 2002:aa7:d2c7:: with SMTP id k7mr2229083edr.184.1633346003549; Mon, 04 Oct 2021 04:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633346003; cv=none; d=google.com; s=arc-20160816; b=pTpppeosG/eUAblD3A8MN1VmF2W4UTpuR3NDIWhIvOkDvnKustUnKSQWNHanITVJVo oFdFoWhEExYXSImickJABZqYlXUlWRRyeyPXKa5GYXQmLneUODz3CcIX3VNIXgsDidoq 5IFLYUyArQ+uNOrPgMad3vt26B+HsRrDCmy8+0B51I5LNgAsRpVtZSEzb+Xftvy6yDmi frVGyuauXYKXZIMwRTQGhfo+R9b45v64uRsUorzhCvffPpbMZX2tOLCCvF718tLObSgE 2YUaOIVn6um2VtWrtCVZFZ8lwjW6Oaxbk8iQdWHxR65SDeoKABGwx/DlVg9sTCImZX9+ 5R7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=waqIW8DKCL5aDaVh9LMfIbCWwryMCpMFHpg8STwhtwA=; b=BOphkwxLjsqMVZvLIv/EJ52k9P/9y355/6glkfFKFoZZ8UCX/PkfLYPIScF7Q4AoNz 4kNvoRMFVd3BQDNQ271kfaTzKUke06SasZsovUXHqQS3//UErx2x45Q31MZLKlO9pgSI WV/95Wg5oeye18W4NWCGdOUHuHpM53G11BkNBpW9lMXhI86FIqriA8j5PXP2MLPWAO8W hEhWb49y9hDobkzUzy0TC+BJwJ4kwHWTahwZ8rDcnzj+KlVENiP+yFCaUWMjInbeGRbc PIkpvmV0NEe7b/ZT2iaezUPQDcZA93Bv3tjnIdG+8J1Astp2jaNHJoBtiD97+Oq8z9hF BJNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si5583848edx.497.2021.10.04.04.12.59; Mon, 04 Oct 2021 04:13:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232462AbhJDKzH (ORCPT + 99 others); Mon, 4 Oct 2021 06:55:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:53020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbhJDKzG (ORCPT ); Mon, 4 Oct 2021 06:55:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D853260F9B; Mon, 4 Oct 2021 10:53:15 +0000 (UTC) Date: Mon, 4 Oct 2021 12:53:13 +0200 From: Christian Brauner To: CGEL Cc: dbueso@suse.de, jamorris@linux.microsoft.com, keescook@chromium.org, ktkhai@virtuozzo.com, legion@kernel.org, linux-kernel@vger.kernel.org, ran.xiaokai@zte.com.cn, varad.gautam@suse.com Subject: Re: [PATCH V2] ipc: add set_ownership() and permissions() callbacks for posix mqueue sysctl Message-ID: <20211004105313.k55766idkyoo6jvt@wittgenstein> References: <20210824120523.s5qnzt643yvgugpv@wittgenstein> <20210827101206.5810-1-ran.xiaokai@zte.com.cn> <20210913144047.4v5jquhyysnnlfvh@wittgenstein> <6142a2ac.1c69fb81.6dcc6.61f8@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6142a2ac.1c69fb81.6dcc6.61f8@mx.google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 16, 2021 at 01:49:31AM +0000, CGEL wrote: > esOn Mon, Sep 13, 2021 at 04:40:47PM +0200, Christian Brauner wrote: > > On Fri, Aug 27, 2021 at 03:12:06AM -0700, CGEL wrote: > > > From: Ran Xiaokai > > > > > > When a non-root user process creates a user namespace and ipc namespace > > > with command "unshare -Ur -i", and map the root user inside > > > the user namesapce to the global owner of user namespace. > > > The newly created user namespace OWNS the ipc namespace, > > > So the root user inside the user namespace should have full access > > > rights to the ipc namespace resources and should be writable to > > > the ipc mqueue sysctls. > > > > > > v2: > > > - update commit msg. > > > - fix the coding style issue. > > > Signed-off-by: Ran Xiaokai > > > --- > > > > David, > > > > are you happy with this too? If so I'd pick this up. > > > > Hi Christian, > > Is there a xx-next branch for this kind patch? > We will try to fixes other issues like this, so we could tag the follow-up > patches with the branch name. Hm, sorry that message slipped through the pre-mid-and post-conference cracks. I'll added the patches now for testing. See: https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/log/?h=kernel.fixes Christian