Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp34163imm; Thu, 20 Sep 2018 17:39:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbjUaz92ZrHfUXCGHs7jr8bDhIDwWYOHcH9r67/raGLqOxLWRNgJN0Pw63r0TL3REu7Lkxp X-Received: by 2002:a17:902:d898:: with SMTP id b24-v6mr41264163plz.218.1537490385079; Thu, 20 Sep 2018 17:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537490385; cv=none; d=google.com; s=arc-20160816; b=SAcQsN2TF/wa+/JoW6SEhm/gk6zI5IuX6y+IPvwpijDdiA5GGiLjI76nmQZez8WL8a U3kwxSB4x4U/oOX9v4ug9fKkt8HcgYakbPIX2oouULSGUaxkgGee2DUjfq4BknIsmTZk /g0/YI5x7UossjLmxnUTSmlX7ofOoOB82stPvAThD44HrMxbLtI99V03WM1WfVSUjFOa Dzi7wJm5kgJOHYUl1SNlXhFo4BwR4wsY+12M07kjF/OL4IMfUENTK2otm36BUJlarmP5 vK9p8+6Yt1dVC6PSWJ4AGDZ314n/9vJlVulkaoEXES+FjM2XVcK0wQeS4fPT48LgUdX4 6ySg== 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=Um6y7SxnsgwmD0u5AQ7dCU67I9NHlPBN99PY01BVHTQ=; b=pRqsiNzdAHVR1bgoG92PxuF0+2UfOfKcGoz65C/fTlxKT5Bj8/m3GUYpgF1uJXoi6J 3def3yw1xiOW1QzZjOmrsmy/ZEry+HJtn4stxQ67grFyDdZR4Y0Y1H3KzXF1CK96A5dA O356TpVh4+dN0jqG3gUpsSrkqsNTWgqX9enPQJazor86YMcRk/CNi/rZ7yamv8q8g9aY 13cRrpK9gvQrAIouV6ejHDYiecMAqwYPzgur7pcrYGlPCn8BUaq+Af5UArDcQvgjSmK9 IlPx2ZPq34C+kAh0YSInM03Nqrx/6U/x1eOVGcnVB7ycUdnMAc9GvzIiloTDHT1sHF2G Rl/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="WDQu/Yu1"; 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 n3-v6si24797935pgh.359.2018.09.20.17.39.22; Thu, 20 Sep 2018 17:39:45 -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="WDQu/Yu1"; 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 S2388810AbeIUGXc (ORCPT + 99 others); Fri, 21 Sep 2018 02:23:32 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:43711 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388716AbeIUGXc (ORCPT ); Fri, 21 Sep 2018 02:23:32 -0400 Received: by mail-yw1-f66.google.com with SMTP id l189-v6so4533124ywb.10 for ; Thu, 20 Sep 2018 17:37:21 -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=Um6y7SxnsgwmD0u5AQ7dCU67I9NHlPBN99PY01BVHTQ=; b=WDQu/Yu1ryaa/ziSXjgGc/cHX/UCH+CMQj7etkY5qVoGZSlYj2kVdumXfXIl+Hy0Ek XfahZeaTeKCjO6FWE7d+L9wnK04Mbj/yNTbQW5APqYisZEy+UHNjteEAIMIUTxTd31m4 m9rYtUl+fTRQ74DMEV1MjhSf3fcuX+rqvZx9o= 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=Um6y7SxnsgwmD0u5AQ7dCU67I9NHlPBN99PY01BVHTQ=; b=E6nrYlO1vaaGGArTigMme2IXMi9DCs6eFmkI0ghNxMBvxT1SjVKN3scwqRKa//Joem dms1rrOyxxopmqbjhvwthWfY4ftzE7LoZBVf60xIojhrmEequ7bx5CK/uEkyM3K2lACZ qXiyFP+n/Vl2lIlNFHGOCN3qM3xb10Kpm+I+49NPh0bjIDc68S5bRp4Cqk6M03nFXAKl 6Z5jznYF5iEJy4AXRIDUMGUg9bdv5B8uy8UxZ9nhvHU3l49I9XhulKdcU3XSGIpStmAg svAoFg1Sk5mzxw6ioit1Pl9mtevwiKZGbtE9rs/LufsdeBuSAmBM5UHatT3+Z/GUJoEZ KVFg== X-Gm-Message-State: APzg51C7bO8EFBQSaT6hSOQEekoWHjYdqB2yUYYSKQN3LOf6uybVcofa k37o9bt2/z8c6dOw0f6qpVY2w5mYRxc= X-Received: by 2002:a81:5855:: with SMTP id m82-v6mr18144650ywb.300.1537490240963; Thu, 20 Sep 2018 17:37:20 -0700 (PDT) Received: from mail-yw1-f42.google.com (mail-yw1-f42.google.com. [209.85.161.42]) by smtp.gmail.com with ESMTPSA id f82-v6sm6647037ywf.58.2018.09.20.17.37.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 17:37:19 -0700 (PDT) Received: by mail-yw1-f42.google.com with SMTP id z143-v6so4539114ywa.7 for ; Thu, 20 Sep 2018 17:37:19 -0700 (PDT) X-Received: by 2002:a0d:d347:: with SMTP id v68-v6mr2395001ywd.124.1537490238838; Thu, 20 Sep 2018 17:37:18 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Thu, 20 Sep 2018 17:37:18 -0700 (PDT) In-Reply-To: References: <20180920162338.21060-1-keescook@chromium.org> <20180920162338.21060-19-keescook@chromium.org> From: Kees Cook Date: Thu, 20 Sep 2018 17:37:18 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH security-next v2 18/26] LSM: Build ordered list of ordered LSMs for init 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:04 PM, Casey Schaufler wrote: > On 9/20/2018 9:23 AM, Kees Cook wrote: >> This constructs a list of ordered LSMs to initialize, using a hard-coded >> list of only "integrity": minor LSMs continue to have direct hook calls, >> and major LSMs continue to initialize separately. >> >> Signed-off-by: Kees Cook > > Do you think that this mechanism will be sufficiently > flexible to accommodate dynamically loaded security modules > in the future? While I am not personally an advocate of > dynamically loaded security modules I have been working to > ensure that I haven't done anything that would actively > interfere with someone who did. I don't think it does, no. This is all just the boot time initialization order, so a dynamic LSM would be unchanged: it would initialize at module load time. :) -Kees -- Kees Cook Pixel Security