Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp128532imm; Fri, 10 Aug 2018 08:40:33 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwzQYFCaLbFkpf9j1pOd7J5aJmwAZ7nfzWmPEtYfKCKFoZRYD2J8H7d2Yamd4yN+yA6iq0N X-Received: by 2002:a63:b00f:: with SMTP id h15-v6mr7068073pgf.442.1533915632996; Fri, 10 Aug 2018 08:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533915632; cv=none; d=google.com; s=arc-20160816; b=ZpoQIYuaae60F6jsSk0tE34hMnk/8ZLi09dpz1c6kMZEBh5XHvD62XF21zYsFGqXUB kmcUIVcxCYZEfR5UcuvrRf2ywMyN97R54zHloWb0FDtouwI/nH39IgKYdfh79MrXWn9R 3iiajHYmbZd9sdIwQ76/0PrQ9wV52+gxVhHbwXRCE/lfwmxCUH+U1FNpPOJ12V3XBg+K XUL5KhaO4vewfdr7ZQW64OcSUt47Xe75V7+9xxjbiPpSTCBybTVCy+Q80ctONCBE9p2Y jENaD7IsZCPmJ6hQl9cN8NSNGYn3Yx5Gx4VovpbYhHE85p0fEBEq7z8U/dIYM6pIOzkJ Hryw== 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=+tfwJ6+BiSh/H6kMhW/YJZX62zcywu/DdPcd1AUASdY=; b=UZdjH5mdw95V7ERXadj4IuTEw6yNkT4PS9/BN8ECVzfgYR5NStlxzCPIhkEx7SM8tM 7CFPAd1tpqAmQ95euy/6lKoSSMYQZLbuLz6Zz/5g4YNgf2U0S6BkM4aSfJ4uNRG8ffTb /SUpeZlyxDU44ma0kXKnheFjLIVhSH/uHgt7zEXu4JZ2PKMWN/zW+sO+IecsGJE188SG aR6VPbSMG4fXEqGve9k128nwmnoPodA5PfeE97YBAx+1gCUmsS1UNEtXt7gP+iF/4p3X loZhnm+G080uh+GzgKBL1xV0WvyZ40DgdZZH06fa3oXlptll0Ezhvw8/XHkOU2A27S2T s3hw== 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 i90-v6si2608908pli.274.2018.08.10.08.40.17; Fri, 10 Aug 2018 08:40:32 -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 S1728340AbeHJRsP (ORCPT + 99 others); Fri, 10 Aug 2018 13:48:15 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:45121 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbeHJRsP (ORCPT ); Fri, 10 Aug 2018 13:48:15 -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 1fo9Ao-0002SF-PF; Fri, 10 Aug 2018 09:17:54 -0600 Received: from [97.119.167.31] (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 1fo9Ao-0006vJ-4x; Fri, 10 Aug 2018 09:17:54 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Andy Lutomirski Cc: David Howells , 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: <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <87d0uqpba5.fsf@xmission.com> <0F2FA70F-8C7E-4D7D-B685-244A76BDB459@amacapital.net> Date: Fri, 10 Aug 2018 10:17:37 -0500 In-Reply-To: <0F2FA70F-8C7E-4D7D-B685-244A76BDB459@amacapital.net> (Andy Lutomirski's message of "Fri, 10 Aug 2018 07:36:17 -0700") Message-ID: <8736vmp7xq.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=1fo9Ao-0006vJ-4x;;;mid=<8736vmp7xq.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.167.31;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1992sMAMDrG0SeaOpUCajB1dFRXYBOw2nA= X-SA-Exim-Connect-IP: 97.119.167.31 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa06.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.1 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 * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Andy Lutomirski X-Spam-Relay-Country: X-Spam-Timing: total 220 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 2.7 (1.2%), b_tie_ro: 1.86 (0.8%), parse: 0.75 (0.3%), extract_message_metadata: 12 (5.4%), get_uri_detail_list: 0.87 (0.4%), tests_pri_-1000: 9 (4.1%), tests_pri_-950: 1.25 (0.6%), tests_pri_-900: 1.09 (0.5%), tests_pri_-400: 21 (9.8%), check_bayes: 20 (9.3%), b_tokenize: 7 (3.1%), b_tok_get_all: 7 (3.0%), b_comp_prob: 1.97 (0.9%), b_tok_touch_all: 3.1 (1.4%), b_finish: 0.59 (0.3%), tests_pri_0: 165 (75.0%), check_dkim_signature: 0.47 (0.2%), check_dkim_adsp: 2.7 (1.2%), tests_pri_500: 4.5 (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 in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski writes: >> On Aug 10, 2018, at 7:05 AM, 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. >> > >> /dev/loop0 /root/loop0-noacl-noquota-nouser_xattr ext4 rw,relatime,nouser_xattr,noacl 0 0 >> /dev/loop0 /root/loop0-acl-quota-user_xattr ext4 rw,relatime,nouser_xattr,noacl 0 0 > > To make sure I understand correctly: the problem is that the second > mount ignored the options because the device was already mounted, > right? Yes. > For the new API, I think the only remotely sane approach is to refuse > to mount or init or whatever you call it an already mounted bdev. If > user code genuinely needs to bind-mount an existing mount that is > known only by its bdev, we can add a specific API just for that. Eric