Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751788AbaJOPFZ (ORCPT ); Wed, 15 Oct 2014 11:05:25 -0400 Received: from mail-la0-f53.google.com ([209.85.215.53]:39719 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751420AbaJOPFX (ORCPT ); Wed, 15 Oct 2014 11:05:23 -0400 Date: Wed, 15 Oct 2014 17:05:12 +0200 From: Seth Forshee To: Andy Lutomirski Cc: Miklos Szeredi , fuse-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, "Eric W. Biederman" , "Serge H. Hallyn" Subject: Re: [PATCH v4 2/5] fuse: Support fuse filesystems outside of init_user_ns Message-ID: <20141015150512.GA22951@ubuntu-mba51> Mail-Followup-To: Andy Lutomirski , Miklos Szeredi , fuse-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, "Eric W. Biederman" , "Serge H. Hallyn" References: <1413296756-25071-1-git-send-email-seth.forshee@canonical.com> <1413296756-25071-3-git-send-email-seth.forshee@canonical.com> <543E8983.5090001@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <543E8983.5090001@mit.edu> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 15, 2014 at 07:49:39AM -0700, Andy Lutomirski wrote: > On 10/14/2014 07:25 AM, Seth Forshee wrote: > > Update fuse to translate uids and gids to/from the user namspace > > of the process servicing requests on /dev/fuse. Any ids which do > > not map into the namespace will result in errors. inodes will > > also be marked bad when unmappable ids are received from > > userspace. > > > > Due to security concerns the namespace used should be fixed, > > otherwise a user might be able to gain elevated privileges or > > influence processes that the user would otherwise be unable to > > manipulate. Thus the namespace of the mounting process is used > > for all translations, and this namespace is required to be the > > same as the one in use when /dev/fuse was opened. > > > > I'm not sure that this is necessary if my nosuid patch goes in, but I > also don't think it makes any sense to hold this up while we find a > perfect solution. > > Is there a decent way to extend this to different translation schemes in > the future (e.g. a flag at fs setup that could be used)? I think it would be possible to relax the translation scheme restrictions in the future, certainly that's easier than tightening down a looser restriction. I still favor picking one namespace to use for translation (surely that's how it would work with other filesystems anyway) rather than using the current namespace during /dev/fuse I/O. I did an implementation using the latter technique, and it's far more complex with no benefits that I can see. Thanks, Seth -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/