Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3475757imm; Mon, 13 Aug 2018 12:22:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPznHfYYM+dOxjzCrri47qwdXFN+mIBTWae2DZcHSvQe9ykJ+Q3wBoO2RZZj+OXrgmKz+0fI X-Received: by 2002:a63:8749:: with SMTP id i70-v6mr18397007pge.325.1534188121380; Mon, 13 Aug 2018 12:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534188121; cv=none; d=google.com; s=arc-20160816; b=pk1sN1A71hZftsccMjmx/utB7QZPbM99Tcx7GARzhzauV940ARKMMfuZVKxT+mpGYu FjtXkj8bgJxlf96tyOJJfDem6mCs+6K4+kGVAjRp5CsVYVK2Q0IZYmBMA+8YrykgmtwD OlU8nnc7eGk7hMwLg26R02bdmrdvnFtfw5jzvRn3v68FKcY154k0vullGkUVbu8zHS8l Yp2waV/JptDx8jcIRe+F85kqtAdx81uMhVPFMZiz9qb9jL5yZbv/wY3tG/MNHoWa1ROP WU2rRCNZSWoWkGM22VuyJrlHZSecRFoJ5tIVB6HCREGA7cRRbodMbpXu0Z1LlXFT5s+M +bUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=kFRH/+K5tQxnl/iRsE6H8IabvSBDdi6lblclbB0O66o=; b=XNGTIne1x8j4utWWVbWzjAbvBJIIfq27dkju3KZKYWh6IE3DX2QJ9Pp5/RSg7BUa9g MEb0PVQVyBTfg8OekMoQxw2bjiOKvmZiDFmh28bt6RzXwkKsZQiWAo1E1P5YoExR1EXt T4PCMHqDOgAFF60tnFNe6yd8Zqn5+HTjQIcDtW2Er1Bxo2TGUhAb7NKoasx7FigH2YDH WHAw/sOD8YWD/CiFoSIgyuCoeh8hXu3PSnONtPM8th82h6co2QXtr6r//EPhDEDf8IgY xnVMUc09zFCwMwrDYXYqaARwk51K9fInIJx/qe41tE3pOqb3vYZgghVoUcS4c0Ye1+VO xVUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=pBbYA3hD; 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 m13-v6si19145185pgk.251.2018.08.13.12.21.46; Mon, 13 Aug 2018 12:22:01 -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=@yahoo.com header.s=s2048 header.b=pBbYA3hD; 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 S1729850AbeHMWDx (ORCPT + 99 others); Mon, 13 Aug 2018 18:03:53 -0400 Received: from sonic317-26.consmr.mail.gq1.yahoo.com ([98.137.66.152]:36086 "EHLO sonic317-26.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728781AbeHMWDw (ORCPT ); Mon, 13 Aug 2018 18:03:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1534188018; bh=kFRH/+K5tQxnl/iRsE6H8IabvSBDdi6lblclbB0O66o=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=pBbYA3hDllZ68rKruQaPaMdZYx2eT+GqZau+JDsbdTZT/YMZXL9rvb0UViVkz/zERNEfl9+AhRGO/YBRKg2Uhlf7rWrbJ2Bn4OgmG6ydBX0/8M6t8U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4UJ11_fNVvSryiF6WVlhxWV4cvqD4VGazzpVdxowYDGkGpejs.jkfmBzAPnqJ3WzWdNj7A53_OV K.hvqp4npaUs2epoWhPlKCW9gKKnHJWfDuforJiiLwkcd7WGCvwX1mEuh5SA7jYW9EwnYvcXd0Jw Z_BU44IUxBvMnZ4gLimxDkOhpt.WfoW8t4FpgDsHOZn8VrSQMLynLqB3iw0nzB5SBWlWYwv3ZNYb QKOMwrkeupxPZHZ_x7R0BM3MIYN4MPfINOVrHsMA6y488IA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Mon, 13 Aug 2018 19:20:18 +0000 Received: from c-67-169-65-224.hsd1.ca.comcast.net (EHLO [192.168.0.102]) ([67.169.65.224]) by smtp420.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 7bde834e570ab143265c57d9bad1149d; Mon, 13 Aug 2018 19:20:17 +0000 (UTC) Subject: Re: BUG: Mount ignores mount options To: James Morris , Al Viro Cc: Andy Lutomirski , Alan Cox , "Theodore Y. Ts'o" , David Howells , "Eric W. Biederman" , John Johansen , Tejun Heo , SELinux-NSA , Paul Moore , Li Zefan , Linux API , apparmor@lists.ubuntu.com, Fenghua Yu , Greg Kroah-Hartman , Eric Biggers , LSM List , Tetsuo Handa , Johannes Weiner , Stephen Smalley , tomoyo-dev-en@lists.sourceforge.jp, "open list:CONTROL GROUP (CGROUP)" , Linus Torvalds , Linux FS Devel , LKML , Miklos Szeredi References: <20180810153902.GH21087@thunk.org> <87d0uqpba5.fsf@xmission.com> <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <22361.1533913891@warthog.procyon.org.uk> <28045.1533916438@warthog.procyon.org.uk> <20180810161400.GA627@thunk.org> <20180813173502.1a7a1d9c@alans-desktop> <20180813172947.GS6515@ZenIV.linux.org.uk> From: Casey Schaufler Message-ID: <48e443ba-51b5-cf10-3342-cdeabb91b224@schaufler-ca.com> Date: Mon, 13 Aug 2018 12:20:14 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/13/2018 12:00 PM, James Morris wrote: > On Mon, 13 Aug 2018, Al Viro wrote: > >> On Mon, Aug 13, 2018 at 09:48:53AM -0700, Andy Lutomirski wrote: >>> Are there cases I'm missing? It sounds like the API could be improved >>> to fully model the last case, and everything will work nicely. >> You know, that's starting to remind of this little gem of Borges: >> http://www.alamut.com/subj/artiface/language/johnWilkins.html >> Especially the delightful (fake) quote contained in there: >> [...] it is written that the animals are divided into: >> (a) belonging to the emperor, >> (b) embalmed, >> (c) tame, >> (d) sucking pigs, >> (e) sirens, >> (f) fabulous, >> (g) stray dogs, >> (h) included in the present classification, >> (i) frenzied, >> (j) innumerable, >> (k) drawn with a very fine camelhair brush, >> (l) et cetera, >> (m) having just broken the water pitcher, >> (n) that from a long way off look like flies. > > Coincidentally, this was also the model for Linux capabilities. Linux capabilities are POSIX capabilities which are modeled closely to accommodate the historical behavior manifest in the P1003.1 specification. So except for (c), (f) and (k) you can use this characterization. On a slightly more serious note, there's a lot of Linux, mount semantics included, that have grow organically and that aren't quite up to the usage models they are being applied to. I applaud David's work in part because it may make it possible to accommodate more of those cases going forward.