From: Casey Schaufler Subject: Re: [PATCH security-next v2 19/26] LSM: Introduce CONFIG_LSM_ORDER Date: Thu, 20 Sep 2018 17:14:35 -0700 Message-ID: <17226f0a-e320-dab0-8691-aa0a22f07544@schaufler-ca.com> References: <20180920162338.21060-1-keescook@chromium.org> <20180920162338.21060-20-keescook@chromium.org> <25825681-a465-684d-d48e-79473bca7606@schaufler-ca.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <25825681-a465-684d-d48e-79473bca7606@schaufler-ca.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: linux-arch.vger.kernel.org On 9/20/2018 5:10 PM, Casey Schaufler wrote: > On 9/20/2018 9:23 AM, Kees Cook wrote: >> This provides a way to declare LSM initialization order via Kconfig. >> >> Signed-off-by: Kees Cook >> --- >> security/Kconfig | 11 +++++++++++ >> security/security.c | 38 +++++++++++++++++++++++++++++++++++--- >> 2 files changed, 46 insertions(+), 3 deletions(-) >> >> diff --git a/security/Kconfig b/security/Kconfig >> index 27d8b2688f75..de8202886c1d 100644 >> --- a/security/Kconfig >> +++ b/security/Kconfig >> @@ -276,5 +276,16 @@ config DEFAULT_SECURITY >> default "apparmor" if DEFAULT_SECURITY_APPARMOR >> default "" if DEFAULT_SECURITY_DAC >> >> +config LSM_ORDER >> + string "Default initialization order of builtin LSMs" >> + default "integrity" > I would like to see the default spelled out rather than > provided implicitly. > > + default "integrity,yama,loadpin,selinux,smack,apparmor,tomoyo" I see now that comes later in the patch set. Never mind.