Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3426086imm; Tue, 29 May 2018 07:05:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrTDw0Rw5ZeG8rnQju2YY1Awr8O/S4wr+ydlLncLWUpFxW2v3c4rHXxoYIN8tSBkDGcFmfO X-Received: by 2002:a63:7b1e:: with SMTP id w30-v6mr13975970pgc.249.1527602756251; Tue, 29 May 2018 07:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527602756; cv=none; d=google.com; s=arc-20160816; b=hCwmhG5exk+CbcdRXoYWaRzacyzqyQ1pdsthq2GtIJVX/E5gYVCdCgC7rMuxtKhrm1 C2ianvPYETIBH8XxoQnQHWwhLdN1yV4mVzTr/XE8jAqNqase74Nwp1bNRyrAdiIxvL0p sptSUWtmcD5R9iLSA4Bn2SI6gLREzCcO16TKoXZVAmZ6KbfHJL6vJY/RroibXvE3NeL+ KAPY3BdlU/wVU1RrJv4pMAZE+rcylxAmp8kJw7GDCDUpghah4nbY8prxlAVR5HZmq9xc YPlVfSA/ZCb8q7XdIvIL26h0ih/s+mBL3fQSohiMTA5WHYlpuO3dei5sr3NjAT2cmmPP YtAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=iteibNqdKTRKnzJI4WF8J32UPIdvdZQWPPUxNzQHBPg=; b=FDgpADiw2fHKCWafWQPcgu11K1KGeE6N0BgefibyjezyMaIzFfcO4N+rL8x+EJbUwX de5phxKXdGYv9EcCr2lbcPZZZDSEA91vr1njgo7Rzjmx4iQ0lXmjGRT3IS9pC39qIrqM fXzuvXezIZw8/2HbIda1iBMgX/Xa5mclrgHO1TCXAduWZQSSBdvfRAPnvf0P1GiovKQP 6sWRDdXrc4qgUWsEY+6DOX1wcTKOQDV1ChLPVOrdciyfOrDPfxxo1Tk9aj73+O1Ret8c 4vw5l0NjXIOf4oJD+KP/imbnZrIllxure5Zqj1JZcgs5KY6JkDHTzhG9LOsHwiGTAXUv Q48Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si25850951pgo.679.2018.05.29.07.05.41; Tue, 29 May 2018 07:05:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934663AbeE2OFH (ORCPT + 99 others); Tue, 29 May 2018 10:05:07 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:48075 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbeE2OFB (ORCPT ); Tue, 29 May 2018 10:05:01 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fNfFE-0002JQ-TV; Tue, 29 May 2018 08:05:00 -0600 Received: from [97.119.174.25] (helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fNfFE-0002Xf-1z; Tue, 29 May 2018 08:05:00 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Miklos Szeredi Cc: Miklos Szeredi , lkml , Linux Containers , linux-fsdevel , Alban Crequy , Seth Forshee , Sargun Dhillon , Dongsu Park , "Serge E. Hallyn" References: <87r2mre5b3.fsf@xmission.com> <87wovubbdf.fsf@xmission.com> <877enmskec.fsf@xmission.com> <87zi0io90k.fsf@xmission.com> Date: Tue, 29 May 2018 09:04:46 -0500 In-Reply-To: <87zi0io90k.fsf@xmission.com> (Eric W. Biederman's message of "Tue, 29 May 2018 09:02:03 -0500") Message-ID: <87tvqqo8w1.fsf_-_@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1fNfFE-0002Xf-1z;;;mid=<87tvqqo8w1.fsf_-_@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.174.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19AlZoqUXp/VQWju1eNtqP1D+ly1RVhIhA= X-SA-Exim-Connect-IP: 97.119.174.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa01.xmission.com X-Spam-Level: X-Spam-Status: No, score=-0.2 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE autolearn=disabled version=3.4.0 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa01 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa01 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Miklos Szeredi X-Spam-Relay-Country: X-Spam-Timing: total 409 ms - load_scoreonly_sql: 0.06 (0.0%), signal_user_changed: 3.3 (0.8%), b_tie_ro: 2.2 (0.5%), parse: 1.23 (0.3%), extract_message_metadata: 29 (7.0%), get_uri_detail_list: 5 (1.3%), tests_pri_-1000: 10 (2.5%), tests_pri_-950: 2.1 (0.5%), tests_pri_-900: 1.64 (0.4%), tests_pri_-400: 28 (6.9%), check_bayes: 26 (6.5%), b_tokenize: 9 (2.2%), b_tok_get_all: 6 (1.4%), b_comp_prob: 2.9 (0.7%), b_tok_touch_all: 2.2 (0.5%), b_finish: 0.78 (0.2%), tests_pri_0: 322 (78.7%), check_dkim_signature: 0.83 (0.2%), check_dkim_adsp: 4.7 (1.1%), tests_pri_500: 7 (1.6%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH] fuse: Allow fully unprivileged mounts X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the fuse and the vfs work is complete. Allow the fuse filesystem to be mounted by the root user in a user namespace. Signed-off-by: "Eric W. Biederman" --- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 22c76cf8c2e3..48baa26993f3 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1222,7 +1222,7 @@ static void fuse_kill_sb_anon(struct super_block *sb) static struct file_system_type fuse_fs_type = { .owner = THIS_MODULE, .name = "fuse", - .fs_flags = FS_HAS_SUBTYPE, + .fs_flags = FS_HAS_SUBTYPE | FS_USERNS_MOUNT, .mount = fuse_mount, .kill_sb = fuse_kill_sb_anon, }; -- 2.14.1