Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp238785pxb; Mon, 13 Sep 2021 18:02:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsVAyhLTOs5NUjO5JqKIj+uuV0s8gAwaPzyRcqp+Np45Z6xSln5pp2nQcLjxJpNFM57qOI X-Received: by 2002:a05:6402:1907:: with SMTP id e7mr15907445edz.201.1631581350035; Mon, 13 Sep 2021 18:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631581350; cv=none; d=google.com; s=arc-20160816; b=AheXQ9UXMuacag3eWpXPjEVCVjtJ4NpwsUjwi9rHGiw1yGsm/VHmZRP/bVkrC+XYN5 NvyHj1UXqL+IUkirdaZFO4/5HdpEYKSY7L50Gp6/waRw8Kzyos+I8/NhctxUgGaB+Ka/ bh/gDS5Z9hN2gOSVhFGd/tWkDZ6lWkiuUqe3d2DE1nyQpBFntbv1/SvF/SPOWdyy4vLz TRFV2xt6DDPVJdCbzfzRp5SEU5W+1aQ3p5jcKAo+Hsx8qY7LHLwp3+Hv7uwDuTq/TigE 5UCcbfdmEC6i/w4ILIlJ1FXPqU3nvyASUcvrx6nIME4G0u0KmZWSX006lChMZ4gJhb08 2X+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature:dkim-signature; bh=tDilSzy60qWezbBdceRLf1j4kQ2B1WkoF6tr5VDBxQY=; b=Lr/RpglBbbv2CiMrH5iSDgNsFM5H1elqAXH2cU5xbHToBg55tXVKjDGVojFahNRwsI jILvCtdWTmvRlHiRDFOBtNqWaTFeGMapy4cnPG/cMiOev596xaPmHBUaVDJn1wjfXIsU U1gkHuTgQE4NpSeSPF/5ZCkpP2hM3hE8bJUXeY/R/n6I4HdM6WFRKdTO3Af8/fAE5s3t VJtt0rmwz+Mqjc5ReKEfsPeaFS//9pmU3gWBSUhGi9VsXyLpiE2MU+D/Sk1VRkA+pyaB lgIDmdet5cL4kfSqW9J5QeuNJMMoXWMIFczA+RinngYAoXrVtA++adZ78dcF6GC2egiv ExDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=sIbZ7Q8g; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=pBgWN802; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx16si9271990ejb.146.2021.09.13.18.02.07; Mon, 13 Sep 2021 18:02:30 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=sIbZ7Q8g; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=pBgWN802; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242923AbhIMTnd (ORCPT + 99 others); Mon, 13 Sep 2021 15:43:33 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:49148 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238011AbhIMTnc (ORCPT ); Mon, 13 Sep 2021 15:43:32 -0400 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-out2.suse.de (Postfix) with ESMTPS id 8D58B2005F; Mon, 13 Sep 2021 19:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1631562135; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tDilSzy60qWezbBdceRLf1j4kQ2B1WkoF6tr5VDBxQY=; b=sIbZ7Q8gdc+GtiXk3Ya04qbIukyysp41Q43nf+FvmJGjQRSghw6ENDkRqgz0/n9qQiOyK7 K5SIhNOEGbKCnd2oGyJewB1RDRbhJdK5iHlIv9eCI9Dey1PA77MF+13PJu6mMXvnpCk5GI NLZ0ZkEM88qscQA7fDxVC69cl9zb1f0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1631562135; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tDilSzy60qWezbBdceRLf1j4kQ2B1WkoF6tr5VDBxQY=; b=pBgWN8022mhrHHBpAQVyVAN/yMBh4GyLx1joc5mCmgYomklQtDKJWcs9IhWnkrh0pmwM6Y 4G2oi+av4Z2tjTAg== 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 79D1013B67; Mon, 13 Sep 2021 19:42:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Vh+PHZepP2F7AQAAMHmgww (envelope-from ); Mon, 13 Sep 2021 19:42:15 +0000 MIME-Version: 1.0 Date: Mon, 13 Sep 2021 12:42:15 -0700 From: Davidlohr Bueso To: Christian Brauner Cc: CGEL , 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 In-Reply-To: <20210913144047.4v5jquhyysnnlfvh@wittgenstein> References: <20210824120523.s5qnzt643yvgugpv@wittgenstein> <20210827101206.5810-1-ran.xiaokai@zte.com.cn> <20210913144047.4v5jquhyysnnlfvh@wittgenstein> User-Agent: Roundcube Webmail Message-ID: X-Sender: dbueso@suse.de Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-13 07:40, 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. LGTM: Acked-by: Davidlohr Bueso