From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-f193.google.com ([209.85.219.193]:34652 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725957AbeKCF5w (ORCPT ); Sat, 3 Nov 2018 01:57:52 -0400 Received: by mail-yb1-f193.google.com with SMTP id n140-v6so1340462yba.1 for ; Fri, 02 Nov 2018 13:49:14 -0700 (PDT) Received: from mail-yw1-f44.google.com (mail-yw1-f44.google.com. [209.85.161.44]) by smtp.gmail.com with ESMTPSA id r185-v6sm8025045ywd.40.2018.11.02.13.49.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Nov 2018 13:49:10 -0700 (PDT) Received: by mail-yw1-f44.google.com with SMTP id i185-v6so1274523ywa.12 for ; Fri, 02 Nov 2018 13:49:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1541182406.20901.31.camel@linux.ibm.com> References: <20181011001846.30964-1-keescook@chromium.org> <20181011001846.30964-13-keescook@chromium.org> <1541182406.20901.31.camel@linux.ibm.com> From: Kees Cook Date: Fri, 2 Nov 2018 13:49:09 -0700 Message-ID: Subject: Re: [PATCH security-next v5 12/30] LSM: Provide separate ordered initialization Content-Type: text/plain; charset="UTF-8" Sender: linux-arch-owner@vger.kernel.org List-ID: To: Mimi Zohar Cc: James Morris , Casey Schaufler , John Johansen , Stephen Smalley , Paul Moore , Tetsuo Handa , Mimi Zohar , Randy Dunlap , Jordan Glover , LSM , "open list:DOCUMENTATION" , linux-arch , LKML Message-ID: <20181102204909.4Fd6k-srRpXFfhs7_tioPnTJyGYwzdxe7qcXuda2sYs@z> On Fri, Nov 2, 2018 at 11:13 AM, Mimi Zohar wrote: > I don't recall why "integrity" is on the security_initcall, while both > IMA and EVM are on the late_initcall(). It's because integrity needs to have a VFS buffer allocated extremely early, so it used the security init to do it. While it's not an LSM, it does use this part of LSM infrastructure. I didn't see an obvious alternative at the time, but now that I think about it, maybe just a simple postcore_initcall() would work? -Kees -- Kees Cook