Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp126333imm; Thu, 13 Sep 2018 17:07:29 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdaj13hyUbAba9dMAbOI1wccNuTXKmaOfROwXqGG9uHpDDZODVRbGWiDKqClH8ZR9IS74uI+ X-Received: by 2002:a65:620d:: with SMTP id d13-v6mr9149531pgv.273.1536883649273; Thu, 13 Sep 2018 17:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536883649; cv=none; d=google.com; s=arc-20160816; b=uueaS+C++Wy39h1863Y7fpQWpm9btGTtewLgE2ADrkoA1+6+F50Ud3slBqBExb/Gfq n0sSEfl5Ivammdgb+l7Yil/YLI0DC0WNgnmBVfuXfq1XAA1gG8V94aj0smLvRvgOcNmW QKcOtDmBnw3x8rA54EwoWSU6wzzh2z7C3qx9xKwp87OFcRDhrYyctlhyer0FrwYGT0x6 7IZNb++kDMoPVFMotXEMe3AF9Juuotn9iOGyvE8ewHBceEGz/so0zp8sb6dEeQf+XaVU D6xIlr8PBPcftE9fuq8afbJ5ZgAd6I0Gr4vfx6+rNhMBJtpbshBbQrEZNcRHYd6G/4yr vb5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=c3GaHnmBJ6JA2RMDhGVHjKj61kys18PP5wtYMzCf4/U=; b=JBOL6k1Zwz5u09RQP22eMu7q2Tl3UnwzvfY05cYq852nCj4cB4BmEn43InvfzCYM7a BbecSuHVnsCQTamAMDBfITCasCCYcB89g4ithitRQdVebMwkisl4ckYhccmPu/w1EUxK pyOcX2/+ptKAqPGPAQ2XFz1jeOetsgOdAtllMTtRRq4Ew2KI6VBUQ0pK0NyTTS4jKryP 9h+b7CFTgOLWc9AuCCfqVzf5Fa7LVYF7SwkhBEnvQBoz/qRhYHKiTiTB0RUt06cPgZ/o 5EtPtUJDz+kyegYBoUzSGRXqUZbme2wccmZkHbb1DJj8CjbsCmL1QoqvFRxe4nZXJkuP sLgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WOlCcC7e; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si6124269pls.13.2018.09.13.17.07.13; Thu, 13 Sep 2018 17:07:29 -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=@chromium.org header.s=google header.b=WOlCcC7e; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728240AbeINFSI (ORCPT + 99 others); Fri, 14 Sep 2018 01:18:08 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:34158 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727029AbeINFSH (ORCPT ); Fri, 14 Sep 2018 01:18:07 -0400 Received: by mail-yb1-f194.google.com with SMTP id t10-v6so4088388ybb.1 for ; Thu, 13 Sep 2018 17:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=c3GaHnmBJ6JA2RMDhGVHjKj61kys18PP5wtYMzCf4/U=; b=WOlCcC7eGw08PM/fFLMCs8gTbgosnd+QBO34WeanTSn1Q1oYxmjfgwvBjjbqZRFmW6 YRjwoI7FKJ1eyA7B/x4KsRByTJgnOy+38vN69Z3if1dDXA+S/5g7Hjv8Y363R0I+VT56 fNXM/q19+xuYPA9idS4JVN2s+xdhc3b2dxRTg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=c3GaHnmBJ6JA2RMDhGVHjKj61kys18PP5wtYMzCf4/U=; b=MFr4fvqrSwrJmlFXwWXVDlJE65lKf6qU4cH3seZiq2IFLz8avVRm03cRooYovwUcoV sLtB4xcLo5+0RA+uzzY9shVR7zyHvTfxr2EE/4hbAsUUQH9DmfzyMxBZTQ0EQ2LeRCsd ToepcSRIcwjHjlrX2qw0MauawNOSdfBVRmlSFob3UIM+GyLjZiIkPw5XOwQvJMlAN2Od RP4f3Juy+UdsDRbFDP3muZCs9hxCizkSRsmTTPN3L+LjAjWzzsmc0YieQKNtBk4YMf/0 DX9DykOQZOLMXQ2oxrAyvyi/NIDOyZOAF6wpiw9zcNc4SlF2bfFGDfUOWLJjTcnMAb/i 0mFQ== X-Gm-Message-State: APzg51A3yTX14MByqRBwmx2MQ0E9KDPHXFMZAKcab1rpDgSrInrZ5bOU oVnayR7P1IoTW9LF/ixfrV8N2yDDBXs= X-Received: by 2002:a25:b05:: with SMTP id 5-v6mr4734091ybl.94.1536883580157; Thu, 13 Sep 2018 17:06:20 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id f82-v6sm2184227ywf.58.2018.09.13.17.06.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 17:06:17 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id o17-v6so4077817yba.2 for ; Thu, 13 Sep 2018 17:06:17 -0700 (PDT) X-Received: by 2002:a25:2c3:: with SMTP id 186-v6mr124647ybc.421.1536883576941; Thu, 13 Sep 2018 17:06:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Thu, 13 Sep 2018 17:06:16 -0700 (PDT) In-Reply-To: References: <99cb1ae7-8881-eb9a-a8cb-a787abe454e1@schaufler-ca.com> <0eb75e66-ed50-4013-6440-38bc2f814c6f@canonical.com> From: Kees Cook Date: Thu, 13 Sep 2018 17:06:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/10] LSM: Blob sharing support for S.A.R.A and LandLock To: Casey Schaufler Cc: John Johansen , Paul Moore , linux-security-module , James Morris , LKML , SE Linux , Tetsuo Handa , Stephen Smalley , "linux-fsdevel@vger.kernel.org" , Alexey Dobriyan , "Schaufler, Casey" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 13, 2018 at 5:03 PM, Casey Schaufler wrote: > On 9/13/2018 4:51 PM, Kees Cook wrote: >> So, before we can really make a decision, I think we have to decide: >> should ordering be arbitrary for even this level of stacking? > > Do we have a case where it matters? I know that I could write a > module that would have issues if one hook got called and another > didn't because because a precursor module hook failed. I don't > think that any of the existing modules have this problem. FWIW, I prefer having explicit ordering that cannot be changed at runtime. I'm just concerned about painting ourselves (further) into a corner with security= suddenly gaining ordering semantics, but maybe I can just ignore this and we can point and laugh at anyone who gets burned by some future change to making it order-sensitive. :) -Kees -- Kees Cook Pixel Security