From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out02.mta.xmission.com ([166.70.13.232]:53324 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754061AbcGFQsR (ORCPT ); Wed, 6 Jul 2016 12:48:17 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: James Bottomley Cc: Jan Kara , Seth Forshee , Linux Containers , linux-fsdevel@vger.kernel.org, Linux API , Djalal Harouni , "Serge E. Hallyn" , Andy Lutomirski , Jann Horn , Michael Kerrisk References: <87ziq03qnj.fsf@x220.int.ebiederm.org> <20160704085220.GC5200@quack2.suse.cz> <87h9c52wsd.fsf@x220.int.ebiederm.org> <20160706085440.GD14067@quack2.suse.cz> <20160706135446.GA45215@ubuntu-hedt> <20160706142255.GB21164@quack2.suse.cz> <1467818630.2369.21.camel@HansenPartnership.com> Date: Wed, 06 Jul 2016 11:35:19 -0500 In-Reply-To: <1467818630.2369.21.camel@HansenPartnership.com> (James Bottomley's message of "Wed, 06 Jul 2016 08:23:50 -0700") Message-ID: <87mvluhghk.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [PATCH review 0/11] General unprivileged mount support Sender: linux-fsdevel-owner@vger.kernel.org List-ID: James Bottomley writes: > The point here is, this patch set is simply mechanism; it requires a > glue layer (like shiftfs, fuse or the vfs remapping proposal) to > activate it. Well ext4 can be used directly and Seth has basic patches for that support. The modifications needed are quite modest. The problem with ext4 is that a malicious ext4 filesystem image might be able to do something nasty to the kernel. How to create a maintainable high performance filesystem that can guard against malicious filesystem images is an open problem right now. Which makes ext4 a poor target for unprivileged mounts. Fuse is a good target because guarding against malicious input from userspace is part of it's orginial design. The new novel mechanism is handling INVALID_UID and INVALID_GID at the VFS layer so that filesystems who have translations in play (which will be anything not mounted by the global root) won't have to get all of the weird corner cases right on their own. To that end I will be very interested to see what shiftfs looks like on top of all of this. Eric