Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp124266imm; Fri, 10 Aug 2018 08:36:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxkB25iqGPcPLTXaFiM5wVKA2Ggxi1VVc9QIPp1ogMRLA45dpNNoXrN0kd8PnkPb3MI4JDY X-Received: by 2002:a17:902:20e3:: with SMTP id v32-v6mr6655071plg.232.1533915380667; Fri, 10 Aug 2018 08:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533915380; cv=none; d=google.com; s=arc-20160816; b=DITjHrvVk3Lp8Hj9nGuI3yeVOjsZhfQu7I0f/ANn8LCu4yOMchiER4NnSo0bMjXYcV vzoRNm/1nkLI+zqOSU5bvxxeSl2W4a+enBCRfLEdHthxkRyGotV0JxIG8ts1O8ydvSlN L2ovpdKURl2x1fSen+BDCw7M62NmO/qjoNg2gegoZlIoe7ArIXVinCbdLFKAs3W8CufG pcbRiQiCJa7xjW44Hc4BlSC/BO/DR8Q7Hq3d4qzphRLo+FPI2d+DoYXyAUEgK2Nva/dH IJ1AiRbDrw1f6ukR7idLaqIBihu61Y+OTU3CMSSiO4VFeDiJ4kgo4+DMDu7eW0sR73Ub CKaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=Od3N1wcXJvUpd0PxTTwy6ZnytWciK1KR8OXq83jCjNw=; b=CW9iHRjgAb9Nb1Dy535o4sAJkuKB3uE3LYJcY5l2Y119+tJRATyU7mwUHQfReQ/iHo 9K3U6OPU4+kmx0lVhuErLX5IzbCK3GBAX3rNCfHrpeqp6J8O/2mguuSSWcz2o9sD/iBJ FzPjdEyA5qXvQEFedqciyOhOpEdYrtLdsrFz2L2SfBripihMJ8aa7/57JT1LOKEANBvm 16wUTRGbac4Ii0Zx1rM7RaX1DN/I7aK9VIED3MIgQGnl/4q3vhEva/xK718Pv45Un9t3 NQkX1NMsi5nCW0mnZ7fGwZpOKrihzQoFiCKdbmXxZa57yQbLdPYMcKiZB+sdczERt9EF Cakw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=cWGPdesv; 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 o8-v6si9928870pgo.2.2018.08.10.08.36.05; Fri, 10 Aug 2018 08:36:20 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=cWGPdesv; 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 S1728069AbeHJRGa (ORCPT + 99 others); Fri, 10 Aug 2018 13:06:30 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:38684 "EHLO mail-pf1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727520AbeHJRGa (ORCPT ); Fri, 10 Aug 2018 13:06:30 -0400 Received: by mail-pf1-f181.google.com with SMTP id x17-v6so4625025pfh.5 for ; Fri, 10 Aug 2018 07:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Od3N1wcXJvUpd0PxTTwy6ZnytWciK1KR8OXq83jCjNw=; b=cWGPdesvVHmNUSRMPGrJd49EcCmb3Y/WsXAKLQ8qrVL228cU2SkpHBws+jZT5tu/69 PDs5kTBPAVEeq6r7p0kBGhINDnOF/qd5IHE4LOhlSHluWBIx8bIWOIE2CtX7bw3DBCJ0 LD3kppSQzFQeqz58R/tYRKQjIkYGUTjZBMcOS8yW7cG9NIMK7m76EJlK1mpCtQwe9xV4 YL3YPBEClvCJsgUrFWCZxhHzUWXpjlLw2d4UZcj0A+ZnpGBOZ7o8Z6s+nM2zaggN79XM VJTUqR2Udsaw6ZzDlaqdigMeaETUEtEUWAap4EHUnPOqUBc5OpNMSqpV4/jL5oVorcPP EbJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Od3N1wcXJvUpd0PxTTwy6ZnytWciK1KR8OXq83jCjNw=; b=HDqNV+Iv90N/s+3LkS4no4jFe5Wu0gNNzoHuHFsVqnek1cNvf+zhoWwapon/rHMihC SFqrcH7bnsoIR3BC4kRhqm4l1wpwLqM/VvRl7eiLsVZ2j3Q32j0/Bwl4vys05heQQ2wW vJtgUvUL58qLfEzb3lU5zjp4lPnuNpfr3NRUbHMDcU0ipX8spNu1DpgBYmNs50Afyy9N 5mSSchTT8ouDljEV5WhZkZxiV3eUi33MlC258JrGGVMORkpVLNVps7B9HUzpVy085Lg+ gLF+6a1cqWjTb3jhATCfCWEwJ7ccd+ly01eNrqOZXdMG9xQi62jLoG6nyJvYIkrWuEhR csDQ== X-Gm-Message-State: AOUpUlFzI67hhLItHy2MMfRtAg9/S0DUqlBC5QceHXlMss26PDZaJg5z tloXVruXe1U150cp43YxPmFV4g== X-Received: by 2002:a62:f0d:: with SMTP id x13-v6mr7246949pfi.123.1533911779369; Fri, 10 Aug 2018 07:36:19 -0700 (PDT) Received: from ?IPv6:2601:646:c200:7429:308a:3596:3d07:5420? ([2601:646:c200:7429:308a:3596:3d07:5420]) by smtp.gmail.com with ESMTPSA id u17-v6sm21235294pfa.176.2018.08.10.07.36.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 07:36:18 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: BUG: Mount ignores mount options From: Andy Lutomirski X-Mailer: iPhone Mail (15G77) In-Reply-To: <87d0uqpba5.fsf@xmission.com> Date: Fri, 10 Aug 2018 07:36:17 -0700 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 Content-Transfer-Encoding: quoted-printable Message-Id: <0F2FA70F-8C7E-4D7D-B685-244A76BDB459@amacapital.net> References: <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <87d0uqpba5.fsf@xmission.com> To: "Eric W. Biederman" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Aug 10, 2018, at 7:05 AM, Eric W. Biederman wro= te: >=20 >=20 > 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. >=20 > /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 ig= nored the options because the device was already mounted, right? For the new API, I think the only remotely sane approach is to refuse to mou= nt or init or whatever you call it an already mounted bdev. If user code gen= uinely needs to bind-mount an existing mount that is known only by its bdev,= we can add a specific API just for that.=