Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp120620imm; Thu, 13 Sep 2018 17:01:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbE07g0vEaMEkiHharMeKcGKj8h3VG9Ofe74Dw/d6rVBiWu0UZHlNBk1InhjdFXwLN87zWZ X-Received: by 2002:a63:1566:: with SMTP id 38-v6mr9133129pgv.383.1536883280329; Thu, 13 Sep 2018 17:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536883280; cv=none; d=google.com; s=arc-20160816; b=NdORXPDJ/+Ssecew+NHZSe8y9XUZc5dtSWmJxnAseOM9pndoKxuYKP5GdQllMMIVIU QrQehqe26P4wBbXk5SdmcpqDOcs799GNZUPO+TCpLPxvE3g4GhbdiMqtFAsXeMnm3J9x W6gOE6YVOu2Yq4hXSpYkJNlbiLY2+YdWtkSDzmJVIhDqWm6cXL0slsUg35Ml7xZtHJQf av3Yvjxv9hLxivqW/BjI3ulpkgarzNHikd6my1Ik0MVsgavdBlXneD9JAIxgxRObpwzg WLZET/Y/Q/2OdQCU/3A/Ai+2FzCagTmHRi7gdQNKgYrI6CNT6ZmYn4z+b+iCsOocyvx2 pTow== 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=9fljAUIzFArFW68SO1bHxk1MHzksPO1BKvlQtREJaGQ=; b=uoO2wQXt0WRVP6bBXiwVITtW73ysx4bE2kA7y5ZGI/1uXpYTtH8Zjc7EYimXB/yfwG GbjMPmcEchBKLf8kiT1Rx9JK1/PNsLLTad9GLTRN6eeSaF/zERHnGcijXOgWDhcyiI2l URbogmPpDFIPyQwSCW+hDKwH9367pCQx9pLtgQXpJ0PyL1Bv/51rgskvcQVGEViMJjLb QFTm587UZwzhyIRgevta952MuifOAV2pxHIHG10ib0hmZnNvh8bSaFpw3SY5qioYPrbC DH5HgD3eYN51xSaGkQ7XgF6A/ol/e041US4Retl1+U79or+dL4ZyXCVr3ki9+QRjA5eI 3wow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RaArCkUf; 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 m8-v6si5395416pll.102.2018.09.13.17.01.03; Thu, 13 Sep 2018 17:01: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=@chromium.org header.s=google header.b=RaArCkUf; 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 S1727966AbeINFJn (ORCPT + 99 others); Fri, 14 Sep 2018 01:09:43 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:42374 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726826AbeINFJm (ORCPT ); Fri, 14 Sep 2018 01:09:42 -0400 Received: by mail-yb1-f194.google.com with SMTP id j8-v6so4051141ybg.9 for ; Thu, 13 Sep 2018 16:57:58 -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=9fljAUIzFArFW68SO1bHxk1MHzksPO1BKvlQtREJaGQ=; b=RaArCkUfH5NOMqZz33WIV30x8X0AfYWYq5aQ+ivmqFU2pDk6Hpn24Fjc7gZGixxmGm /6PQg//s5cFcS3ZmzHtZwXJ7tCgggcKnJeNaKsBJwWqqCYOhjetfwpg+jky02kHt/hcw mXGtrp+Z009NdTKJhwu64kQ+BzAemCRxZ6eSI= 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=9fljAUIzFArFW68SO1bHxk1MHzksPO1BKvlQtREJaGQ=; b=Q0bhXgiyqVHlK/toV89tOPId/b9NfLdpZJc4KXksJcFwT6+DZT/8FWfyz2wbuS0ma6 Ih8snt7amQsocWw0R5UytsSwTsZjUvtuQObxCPXRQZ/orWeikPOxzXoxdJyROESsZVSd W3d4Lf1jmmp3g/TEQdRdWY5omSkfZkOzWQDO0rOo4q8Lqe+Imqiup78OENDX6twtcEy/ szIUJQu9FJkn/SehTDNRwp73zy7N56KCVHADvm3iFivmY6fythfo52X+y4/CDGG2Icbt RtarbDXUHY+2nfrDLbc+G5zBa1JYUZ6h84cb5SixuTEBcYnvLDUyIo11nvrQ9mvsQy+e xWOg== X-Gm-Message-State: APzg51DBuE0CfXmv/bZPjcdwS11zZ31X/8gSxeFZtmN8nhs1pOMm8wHo nKPzLqtI7ZmjkCagqaNxDgNYhS/Od/I= X-Received: by 2002:a25:5a89:: with SMTP id o131-v6mr4627351ybb.73.1536883077119; Thu, 13 Sep 2018 16:57:57 -0700 (PDT) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id p78-v6sm7420094ywp.31.2018.09.13.16.57.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 16:57:56 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id y20-v6so4035383ybi.13 for ; Thu, 13 Sep 2018 16:57:55 -0700 (PDT) X-Received: by 2002:a25:dd82:: with SMTP id u124-v6mr4518384ybg.171.1536883075446; Thu, 13 Sep 2018 16:57:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Thu, 13 Sep 2018 16:57:54 -0700 (PDT) In-Reply-To: References: <99cb1ae7-8881-eb9a-a8cb-a787abe454e1@schaufler-ca.com> From: Kees Cook Date: Thu, 13 Sep 2018 16:57:54 -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: Paul Moore , linux-security-module , James Morris , LKML , SE Linux , John Johansen , 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 4:51 PM, Casey Schaufler wrote: > On 9/13/2018 4:06 PM, Kees Cook wrote: >> - what order should any stacking happen? Makefile? security=? > Makefile by default. Okay, if ordering is by Makefile and everyone dislikes my $lsm.enabled=0/1 thing, then these mean the same thing: security=selinux,tomoyo security=tomoyo,selinux i.e. order of security= is _ignored_ in favor of the Makefile ordering. That seems dangerous to accept input that is "out of order", though, if we ever DO want to make order definable. -Kees -- Kees Cook Pixel Security