Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp604113imm; Fri, 10 Aug 2018 18:20:53 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz13Ub/3m3d58Q49YQjJ/J4yte+N1hh5ThlqqvZCruEJp8+7uFmRl/6KpiCoA34BvypF31y X-Received: by 2002:a17:902:5856:: with SMTP id f22-v6mr8291569plj.266.1533950453937; Fri, 10 Aug 2018 18:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533950453; cv=none; d=google.com; s=arc-20160816; b=ipfW2A+lWIBNMZvsJk+FlGT4ey3v9YAeMTsMMTdZcgyzvwDDeK/P97/M/9Cug7IYci tB/F/JSjGzffHBCt1Oq2ypFGje/BTvGagyeK1zZloqbZA8s+cAJlA4T/BF9xbMsu2/uv HJS/kA3rZeckSXgv14oprflpS1KGqWQ1PED1qQ0bYC5kXQk7k73YRKFFgZP4nHFcBawQ abCrglmI4gtyY07HqgIqjEjFvncCEFoUuRNFeJMJT51EVGj+4C5Vzf45HLnkXKPzBdIK GZNUD2q6p0gydtd6rMdwbKd8rdA7n8pqN9MJcz8k/uUkXZhpd7HqeI1i73RGTC61dscZ 3VXA== 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=8Lm/ZtSUDQnleUleNtkQiGCuMk8IjtpCg5VF8syAzd0=; b=XXvkwSwER5ffJQHNzw2ig/+OCTMX76pAxU8tbSI3DoAiWAfRR3DDNlBrSMNX2kdCm8 pLaoNlkr2Sd5jcKqC+jJbRLKcTrzWhN9y3aM3YyEq3toQBX8sdmwxxTlHviZpUJOuutX Umy9gIiCXuYLS/oKu1a0nzhlN6o3zOQumUaKL+DXu+mU76ZlZeGP2hP+DoFVYS735BCV oO5vprQFScSmOpfGO1Hsy07CAdUlb5g/diUZA2h19nE5FBT4poMBJiM/OmSjvo06WQt2 7E2GLuQ6vIXxyAtcYfJBDuMUlBIeuhOe1+Xn7QRLezy//s3wCg4ESyvDXflPRQ3M+ps5 n44A== 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 c197-v6si12858010pfc.74.2018.08.10.18.20.37; Fri, 10 Aug 2018 18:20:53 -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 S1727206AbeHKDwE (ORCPT + 99 others); Fri, 10 Aug 2018 23:52:04 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:52495 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbeHKDwE (ORCPT ); Fri, 10 Aug 2018 23:52:04 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1foIZC-0002b3-Ry; Fri, 10 Aug 2018 19:19:42 -0600 Received: from [97.119.167.31] (helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1foIZB-0006Qf-VX; Fri, 10 Aug 2018 19:19:42 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: David Howells Cc: viro@zeniv.linux.org.uk, John Johansen , Tejun Heo , selinux@tycho.nsa.gov, Paul Moore , Li Zefan , linux-api@vger.kernel.org, apparmor@lists.ubuntu.com, Casey Schaufler , fenghua.yu@intel.com, Greg Kroah-Hartman , Eric Biggers , linux-security-module@vger.kernel.org, Tetsuo Handa , Johannes Weiner , Stephen Smalley , tomoyo-dev-en@lists.sourceforge.jp, cgroups@vger.kernel.org, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, "Theodore Y. Ts'o" , Miklos Szeredi References: <87d0uqpba5.fsf@xmission.com> <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <22361.1533913891@warthog.procyon.org.uk> Date: Fri, 10 Aug 2018 20:19:25 -0500 In-Reply-To: <22361.1533913891@warthog.procyon.org.uk> (David Howells's message of "Fri, 10 Aug 2018 16:11:31 +0100") Message-ID: <87pnyphf8i.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=1foIZB-0006Qf-VX;;;mid=<87pnyphf8i.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=97.119.167.31;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+dXECPLzrp7mSAV/BqzmABSW33FR7fKIU= X-SA-Exim-Connect-IP: 97.119.167.31 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,T_TM2_M_HEADER_IN_MSG autolearn=disabled version=3.4.0 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 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: ;David Howells X-Spam-Relay-Country: X-Spam-Timing: total 519 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 3.1 (0.6%), b_tie_ro: 2.1 (0.4%), parse: 1.22 (0.2%), extract_message_metadata: 26 (5.0%), get_uri_detail_list: 2.4 (0.5%), tests_pri_-1000: 12 (2.4%), tests_pri_-950: 2.1 (0.4%), tests_pri_-900: 1.85 (0.4%), tests_pri_-400: 39 (7.5%), check_bayes: 37 (7.1%), b_tokenize: 15 (2.9%), b_tok_get_all: 9 (1.8%), b_comp_prob: 5 (1.0%), b_tok_touch_all: 3.8 (0.7%), b_finish: 0.78 (0.1%), tests_pri_0: 419 (80.6%), check_dkim_signature: 0.85 (0.2%), check_dkim_adsp: 4.0 (0.8%), tests_pri_500: 10 (2.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: BUG: Mount ignores mount options 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 in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Howells writes: > Eric W. Biederman wrote: > >> There is a serious problem with mount options today that fsopen does not >> address. The problem is that mount options are ignored for block based >> filesystems, and any other type of filesystem that follows the same >> pattern. > > Yes. Since you *absolutely* *insist* on this being fixed *right* *now* *or* > *else*, I'm working up a set of additional patches to give userspace the > option of whether they want no sharing; sharing, but only with exactly the > same parameters; or to ignore the parameter differences and just accept > sharing of what's already already mounted (ie. the current behaviour). > > The second option, however, is not trivial as it needs to compare the fs > contexts, including the LSM parameters. To make that work, I really need to > remove the old security_mnt_opts stuff - which means I need to port btrfs to > the new context stuff. > > We discussed this yesterday, and I proposed a solution, and I'm working on it. I repeated this because after some comments from Al on IRC yesterday and Miklos's email replay. It appeared clear that I had not specified why my issue was clearly enough for people reading the thread to understand the problem that I see. > Yes, I agree it would be nice to have, but it *doesn't* really need supporting > right this minute, since what I have now oughtn't to break the current > behaviour. I am really reluctant to endorse anything that propagates the issues of the current interface in the new mount interface. Eric