Return-Path: Received: from out01.mta.xmission.com ([166.70.13.231]:44269 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757385AbcG0AP1 convert rfc822-to-8bit (ORCPT ); Tue, 26 Jul 2016 20:15:27 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: =?utf-8?Q?Micha=C5=82?= Zegan Cc: Linus Torvalds , Linux Containers , linux-fsdevel@vger.kernel.org, Seth Forshee , linux-kernel@vger.kernel.org References: <87bn1kwjad.fsf@x220.int.ebiederm.org> <6ec55309-209d-7b90-9289-19e6fd180af9@poczta.onet.pl> Date: Tue, 26 Jul 2016 19:02:24 -0500 In-Reply-To: <6ec55309-209d-7b90-9289-19e6fd180af9@poczta.onet.pl> (=?utf-8?Q?=22Micha=C5=82?= Zegan"'s message of "Wed, 27 Jul 2016 01:18:01 +0200") Message-ID: <8737mwne27.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [GIT PULL] userns related vfs enhancements for v4.8 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: MichaƂ Zegan writes: > I have one question: what uids are written in the filesystem inodes? > those that the kernel sees, or those mapped by user namespaces? and so, > is it true that the filesystem will still require shifting uids, > directly or indirectly, to be usable from inside user namespace? can't > uids be mapped dynamically from what is in the inode to kernel uids > based on the user namespace they are used from? Maybe because the fs can > be mounted from outside before starting the container? Feel free to read the code. As best I can understand your question the best answer is in reading and understanding the code yourself. Eric