From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.mailbox.org ([80.241.60.212]:40418 "EHLO mx1.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966192AbeEXWap (ORCPT ); Thu, 24 May 2018 18:30:45 -0400 Date: Fri, 25 May 2018 00:30:41 +0200 From: Christian Brauner To: Seth Forshee Cc: "Eric W. Biederman" , Linux Containers , linux-fsdevel@vger.kernel.org, "Serge E. Hallyn" , linux-kernel@vger.kernel.org Subject: Re: [REVIEW][PATCH 1/6] vfs: Don't allow changing the link count of an inode with an invalid uid or gid Message-ID: <20180524223040.GB17493@mailbox.org> References: <87o9h6554f.fsf@xmission.com> <20180523232538.4880-1-ebiederm@xmission.com> <20180524125832.GP3401@ubuntu-xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180524125832.GP3401@ubuntu-xps13> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, May 24, 2018 at 07:58:32AM -0500, Seth Forshee wrote: > On Wed, May 23, 2018 at 06:25:33PM -0500, Eric W. Biederman wrote: > > Changing the link count of an inode via unlink or link will cause a > > write back of that inode. If the uids or gids are invalid (aka not known > > to the kernel) writing the inode back may change the uid or gid in the > > filesystem. To prevent possible filesystem and to avoid the need for > > filesystem maintainers to worry about it don't allow operations on > > inodes with an invalid uid or gid. > > > > Signed-off-by: "Eric W. Biederman" > > Acked-by: Seth Forshee Acked-by: Christian Brauner