Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp921709imm; Fri, 28 Sep 2018 08:57:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV61irNMf6fNLnjr6jLhJaMEDE3+5By7/AVqVKSfl59+xCu/xLiUYZO+QdxnShXqdLKdYctM+ X-Received: by 2002:a17:902:6ac4:: with SMTP id i4-v6mr10846592plt.153.1538150246473; Fri, 28 Sep 2018 08:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538150246; cv=none; d=google.com; s=arc-20160816; b=AUIx/PNBnbzQi4GCQ1tbQy5D22hc7ceOKZpMs4Qua/+hxwjmPsR7ANZsdsl3T7iaYW 1wn1JoQ/qDtZ/Q2W3fgnMa87FFifueBjvnuvs9GweG2sWSZJb3RvV0keK8mDod39ZbmM UoHc1wfBjx3vaA1Yw+VWg9G5P2noNvrfjtw+LPd1ZSictsrwKqNAPd4ZqHp3GuQQ5bB3 DQGKQ0kBvHWh1l3mzBcqa8SaJUCrntZYA8CPsZpzOZBNMsFBVMLjDSqzivevPBnQoE34 /ZVtCpt6dfTevicSY8j88KuDFWDVoQ6OwQt3eqKKNF7Kl/C4aSRP2O7RZzc0D6OqTv8I q1Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=frdaIPXBTlNMV879jTZNUMiSFT7QBFEon4bVG4nF/Xw=; b=ifn0uxNZbUu2eGL2ymRoo+d2A2zQ6wB5yq2Q+kPoKAH3lv8o5ALenPL7BcC073qjgg N4jEu7DJdTD6cYqwYtMf9BCBuos8Id0BgB0p+EbJ1zpFKrc9Tx7SE3LRWfUiAT/vc1tA OVHjOSCoGVeNoX2y3BJyN1iqguLv9jL2aOYJBo1peXOuRjRP+cdSuB/JJR/+LM9UHns4 i0Iv/Sl7upmx80RVW/GlhMFJc4AhkgNJ8/BKj9ENyjeDkptWrG7mSRMuf9u0aRNLH130 4bBe/V32qjf5UpEZso+41TtNkEsD0dcM+Ry7j0I9jOS7uEc5NavLkq3MDeFONI09m2jP g04w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=guXk7lLJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si5320372pll.42.2018.09.28.08.57.10; Fri, 28 Sep 2018 08:57:26 -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=@yahoo.com header.s=s2048 header.b=guXk7lLJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729316AbeI1WTj (ORCPT + 99 others); Fri, 28 Sep 2018 18:19:39 -0400 Received: from sonic315-26.consmr.mail.ne1.yahoo.com ([66.163.190.152]:32997 "EHLO sonic315-26.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729201AbeI1WTj (ORCPT ); Fri, 28 Sep 2018 18:19:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1538150115; bh=frdaIPXBTlNMV879jTZNUMiSFT7QBFEon4bVG4nF/Xw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=guXk7lLJTiuP3l62XVsQ/aOiX5TnI1DuuUj0mb2hRLHb8OUuo6EFhVZXMpypT80kx5ajteCtDoAhKqFfBFZSAXKpBO6pEJyU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gBquLkCxiaIteb 3IsU8xSbCWeYmacBuiQyw1tFT8P4AgEd9wjOhYjHOeZc8R85S3CBjAeehxxLBPXOUKtdFzuqPzjS pbq_0FnpHpjDJATxxpQtQD41n31UKAXpILepKxe70mONgErokBaYOkzLoBHOajlSXc870nyXyi9s qqzxnQ4FtEWP.fGTIEMmgF_hQwp_wNXe92ijERofZb60FS3Xce5CfQvu5aKrcpMR8jGnA9q13O.v Uzqeb8w7GbmwplO6rHWoBSqeoFXsRdd4U99ESpG5T2vAa1RzW Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Fri, 28 Sep 2018 15:55:15 +0000 Received: from c-67-169-65-224.hsd1.ca.comcast.net (EHLO [192.168.0.102]) ([67.169.65.224]) by smtp429.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID fc1289fcf068aea5d5b9b7544d6a23b3; Fri, 28 Sep 2018 15:55:14 +0000 (UTC) Subject: Re: [PATCH security-next v3 00/29] LSM: Explict LSM ordering To: Kees Cook , James Morris Cc: John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , LSM , Jonathan Corbet , linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180925001832.18322-1-keescook@chromium.org> From: Casey Schaufler Message-ID: Date: Fri, 28 Sep 2018 08:55:12 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180925001832.18322-1-keescook@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/24/2018 5:18 PM, Kees Cook wrote: > v3: > - add CONFIG_LSM_ENABLE and refactor resulting logic Kees, you can add my Reviewed-by:Casey Schaufler for this entire patch set. Thank you for taking this on, it's a significant and important chunk of the LSM infrastructure update. > ... > Breakdown of patches: > > Infrastructure improvements (no logical changes): > LSM: Correctly announce start of LSM initialization > vmlinux.lds.h: Avoid copy/paste of security_init section > LSM: Rename .security_initcall section to .lsm_info > LSM: Remove initcall tracing > LSM: Convert from initcall to struct lsm_info > vmlinux.lds.h: Move LSM_TABLE into INIT_DATA > LSM: Convert security_initcall() into DEFINE_LSM() > LSM: Record LSM name in struct lsm_info > LSM: Provide init debugging infrastructure > LSM: Don't ignore initialization failures > > Split "integrity" out into "ordered initialization" (no logical changes): > LSM: Introduce LSM_FLAG_LEGACY_MAJOR > LSM: Provide separate ordered initialization > > Provide centralized LSM enable/disable infrastructure: > LoadPin: Rename "enable" to "enforce" > LSM: Plumb visibility into optional "enabled" state > LSM: Lift LSM selection out of individual LSMs > LSM: Prepare for arbitrary LSM enabling > LSM: Introduce CONFIG_LSM_ENABLE > LSM: Introduce lsm.enable= and lsm.disable= > LSM: Prepare for reorganizing "security=" logic > LSM: Refactor "security=" in terms of enable/disable > > Provide centralized LSM ordering infrastructure: > LSM: Build ordered list of ordered LSMs for init > LSM: Introduce CONFIG_LSM_ORDER > LSM: Introduce "lsm.order=" for boottime ordering > > Move minor LSMs into ordered LSM initialization: > LoadPin: Initialize as ordered LSM > Yama: Initialize as ordered LSM > LSM: Introduce enum lsm_order > capability: Initialize as LSM_ORDER_FIRST > > Move major LSMs into ordered LSM initialization: > LSM: Separate idea of "major" LSM from "exclusive" LSM > LSM: Add all exclusive LSMs to ordered initialization > > -Kees > > .../admin-guide/kernel-parameters.txt | 20 + > arch/arc/kernel/vmlinux.lds.S | 1 - > arch/arm/kernel/vmlinux-xip.lds.S | 1 - > arch/arm64/kernel/vmlinux.lds.S | 1 - > arch/h8300/kernel/vmlinux.lds.S | 1 - > arch/microblaze/kernel/vmlinux.lds.S | 2 - > arch/powerpc/kernel/vmlinux.lds.S | 2 - > arch/um/include/asm/common.lds.S | 2 - > arch/xtensa/kernel/vmlinux.lds.S | 1 - > include/asm-generic/vmlinux.lds.h | 25 +- > include/linux/init.h | 2 - > include/linux/lsm_hooks.h | 43 ++- > include/linux/module.h | 1 - > security/Kconfig | 61 ++- > security/apparmor/lsm.c | 16 +- > security/commoncap.c | 8 +- > security/integrity/iint.c | 5 +- > security/loadpin/Kconfig | 4 +- > security/loadpin/loadpin.c | 28 +- > security/security.c | 351 +++++++++++++++--- > security/selinux/hooks.c | 16 +- > security/smack/smack_lsm.c | 8 +- > security/tomoyo/tomoyo.c | 7 +- > security/yama/yama_lsm.c | 7 +- > 24 files changed, 438 insertions(+), 175 deletions(-) >