Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp34902imm; Thu, 20 Sep 2018 17:40:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbRmU2b7pWQYj/2iEpa0s/8Lmc4B98dVDnsBL0QsAoPviuAW6ijMP8KAMnXvlImvCTui/79 X-Received: by 2002:a17:902:1a9:: with SMTP id b38-v6mr41695927plb.89.1537490449533; Thu, 20 Sep 2018 17:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537490449; cv=none; d=google.com; s=arc-20160816; b=XuY/yLU4zbMEJT+PpFkSv8npVrLryhmB4nWPHV7/u6HkmUvdjDRRKGQaFGOXJ6shu8 GPnHMPYsMtBjmFgAoYivVbvnXpZJjZTNB2wnp7V9TvfgRS70lU9jJpr+QJ8o+5cm7lst 3oETdwt1oI6CIpBlX7r5hUIc/cwLNUcw6S2ra2wUt5y1S+oz9Rgfi7l941fzKjvrFTA0 BwUR2KnYxnmNPl8Hnp/A3p9HeByrIPnGTI4zXHjf7TeQvQhKcCI7fVUnmtgo4Kpn/2Id Vfr0tz3A/4KNRvQWkej6XjwHcJ2gb5fyfGPgVrs3NXEi77Taos2DYh55WX08ozJFU2rJ YwPA== 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=SwccCbkUX+HHUBGdWYMks7d98ul3uAqb/zyYWmMv+PQ=; b=IshQz/HTmHjAhXCJjkmAajxU9u2Wey8W2grVpCLqHHKgzemySXW89l9d1XkLRN8GzB fKbHfTXotCfx9aWCQwhbLMjKBg2I2cYhWqSFQwkn3AzO4gPthAY5rNDsS0vmYiz3g+wN cTPa0mxL6vVOhZAr9SdQNnnCg05CqlOjl/fgZ+DLe4Gl55EAqijh4EuDv2HjkQoyDbwW 2SSmX9SQInN8ErFEoQpwZeURsRGScWEbH3xE1NZ8gX424BHzUuSC+22GcgZx8v+eI0eH mudy+KeK2hFtk1U9JKeVtumP4khu6JOhceD8ctw4GKku4Ss2grf79mob1OCNpcXKVIdX 7GeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MNfKiA6N; 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 u6-v6si24263138pld.256.2018.09.20.17.40.33; Thu, 20 Sep 2018 17:40:49 -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=MNfKiA6N; 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 S2388853AbeIUG0Q (ORCPT + 99 others); Fri, 21 Sep 2018 02:26:16 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:35901 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbeIUG0Q (ORCPT ); Fri, 21 Sep 2018 02:26:16 -0400 Received: by mail-yb1-f193.google.com with SMTP id 5-v6so4746413ybf.3 for ; Thu, 20 Sep 2018 17:40:05 -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=SwccCbkUX+HHUBGdWYMks7d98ul3uAqb/zyYWmMv+PQ=; b=MNfKiA6Nli4ZGb2UDRvpFWgab/5Ql74SKHXBn49Pf076YnZwIGfY5dLmoueoUGT6D8 R4saBLjMH79HFud92AUVVkwOf50ItQOGaN8upC4FoOzyxoKgz++S0RB/iU1UfwPvXc5d xvjhOvqp0Konvjb9DJA3hjkSKxFkmY3+zKkj8= 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=SwccCbkUX+HHUBGdWYMks7d98ul3uAqb/zyYWmMv+PQ=; b=DE+yvF1b+/0HBvSW3FNMuUeLD0lRXGCnkMhNeQ5AjmmU90RhfoD7yp+jTuMvb7wBnp 9gLNcG+MrxcgQkXhzpT+CXTtREfB+Vq2zldFcDH66tIpym3Hn/ZuJ4t0xa56C0hCCgnO QjWNZoexnc9BOGxyqqS03IsivblMp2kotGnMHeHFMKC5W2gfRHtqva3/rO1Ln6t3etOn GpSzDAb5lEep+WPM/NPzXba6IX4v3gR2K04IRINt+6V7Vbr3Jnb29RhT8G/k7lkytKAx eo3vcwCOwqP2+qbh0PPWFD2N5Hx4ZWihEmX+hM4MZnomBIfP16X2TUc/5oBPDJ8+tvbf Pngg== X-Gm-Message-State: APzg51Cv6Fl0RO81IiHjSM56bZSgcFq8ZkzUKR3Sb2J5rt7jlj/LTAVC eXNfBuU25b4Pnlmqn6A2XohV3hRrJ+k= X-Received: by 2002:a25:bacf:: with SMTP id a15-v6mr19807402ybk.305.1537490403966; Thu, 20 Sep 2018 17:40:03 -0700 (PDT) Received: from mail-yw1-f41.google.com (mail-yw1-f41.google.com. [209.85.161.41]) by smtp.gmail.com with ESMTPSA id j8-v6sm5719908ywj.6.2018.09.20.17.40.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 17:40:02 -0700 (PDT) Received: by mail-yw1-f41.google.com with SMTP id j131-v6so4526746ywc.13 for ; Thu, 20 Sep 2018 17:40:02 -0700 (PDT) X-Received: by 2002:a0d:fe87:: with SMTP id o129-v6mr2415541ywf.237.1537490401910; Thu, 20 Sep 2018 17:40:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Thu, 20 Sep 2018 17:40:01 -0700 (PDT) In-Reply-To: <71f833b8-40cb-83f8-6803-7df26e8fa460@schaufler-ca.com> References: <20180920162338.21060-1-keescook@chromium.org> <20180920162338.21060-21-keescook@chromium.org> <71f833b8-40cb-83f8-6803-7df26e8fa460@schaufler-ca.com> From: Kees Cook Date: Thu, 20 Sep 2018 17:40:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH security-next v2 20/26] LSM: Introduce "lsm.order=" for boottime ordering To: Casey Schaufler Cc: James Morris , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , LSM , Jonathan Corbet , "open list:DOCUMENTATION" , linux-arch , LKML 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 20, 2018 at 5:12 PM, Casey Schaufler wrote: > On 9/20/2018 9:23 AM, Kees Cook wrote: >> Provide a way to reorder LSM initialization using the new "lsm.order=" >> comma-separated list of LSMs. Any LSMs not listed will be added in builtin >> order. >> >> Signed-off-by: Kees Cook >> --- >> Documentation/admin-guide/kernel-parameters.txt | 5 +++++ >> security/security.c | 15 ++++++++++++++- >> 2 files changed, 19 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt >> index 32d323ee9218..5ac4c1056ffa 100644 >> --- a/Documentation/admin-guide/kernel-parameters.txt >> +++ b/Documentation/admin-guide/kernel-parameters.txt >> @@ -2276,6 +2276,11 @@ >> >> lsm.debug [SECURITY] Enable LSM initialization debugging output. >> >> + lsm.order=lsm1,...,lsmN >> + [SECURITY] Choose order of LSM initialization. Any >> + builtin LSMs not listed here will be implicitly >> + added to the list in builtin order. > > Added at the end of the list, or beginning of the list? Whoops, I had an earlier version that was more clear. I meant to say "appended" instead of "added" here. Fixed for the next version. -Kees -- Kees Cook Pixel Security