From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-f195.google.com ([209.85.219.195]:38020 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727029AbeINFSG (ORCPT ); Fri, 14 Sep 2018 01:18:06 -0400 Received: by mail-yb1-f195.google.com with SMTP id e18-v6so4069631ybq.5 for ; Thu, 13 Sep 2018 17:06:19 -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 z7-v6sm7953282ywz.21.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 t10-v6so4088342ybb.1 for ; Thu, 13 Sep 2018 17:06:17 -0700 (PDT) MIME-Version: 1.0 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 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-fsdevel-owner@vger.kernel.org List-ID: 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