Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2430234imm; Sat, 15 Sep 2018 17:33:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ35B5WF7AhAJQaign1yRDIk7vq1rnnQUMQeyQtKSbpVM4rSC7Cu+83GMlCcziiCGZu1PQ+ X-Received: by 2002:a63:5660:: with SMTP id g32-v6mr17170835pgm.227.1537057981432; Sat, 15 Sep 2018 17:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537057981; cv=none; d=google.com; s=arc-20160816; b=ysPqWS6MJ5daL13fYh06gH2Id31SUjN9hr9ZFXQSdOSSLreBVn6qbBLL/cWBAJaayD cLlOGr9q3IAAcGybxm9RglRurGknPVAqLF14faF35JFtHVSf281x7Yc/RoDx0tYrfIDu sJ2eKY7OFniLneUdvbE8buNJtuSxn1ZiizeZ72y1NCufVGOMRZI1jQx2PztS9/bzA+Gm c6z+YL9ER+/o2wLfflkrYq5q5ske16m04YY0q0ieoa0OQI7AEpJLaWO2WYVtna1gKlyn BHcxKIuOsJkBnVfLZP1/nSHtVmmQVznCLnSsIihlzO5eEAGU8l7/QknK2y6Vipb5WfbK LziA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=b0Z1CYwKLnLjlLuTRAvVqGb4C3/ai0Sv79Sf+0Od5TU=; b=FLXeXLrUlnzDZgBjdX0sQH9+V5VYXtMZ39NXr6UD8H2CxEh0bW7QBnJwieaEBpXjy1 umlnomIye57BiWbbi0EyyjajHiN8W1wJcygy+4+1Xm92CPQSjFI5HLhoVhFzizgPkwrL zepiVew9qysQlDaJKexCTBGKTprjiS6rf690ct8AE+QcQ8W//RA4j1O/fC9+dHPp7PUi Zo24E+s7AgI1dtLTwx+XCPDHd0QKo5aQyPsjDNg1uirvVHZ9Kzk+yv47F7CQBnAdUKvN jgNDRXus89xY3nCgQXI940de9iz5chftaroAPuOeGW4LJrw3Zhu8e6jLN/apv6R2TW6Y 8ERQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="FG2tj/TL"; 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 o33-v6si10758526plb.489.2018.09.15.17.32.46; Sat, 15 Sep 2018 17:33:01 -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="FG2tj/TL"; 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 S1728405AbeIPFxH (ORCPT + 99 others); Sun, 16 Sep 2018 01:53:07 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46559 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728215AbeIPFwG (ORCPT ); Sun, 16 Sep 2018 01:52:06 -0400 Received: by mail-pl1-f195.google.com with SMTP id t19-v6so5770212ply.13 for ; Sat, 15 Sep 2018 17:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=b0Z1CYwKLnLjlLuTRAvVqGb4C3/ai0Sv79Sf+0Od5TU=; b=FG2tj/TLjj08QzPFUMh+IrjNW2vaWgk1rc4ucne41pTb5ALMdVqOtR0xwQapDuzsrQ CKhlh3UdY6GWxqvwhrI1zsaY1fh0M9EWJL5JiDmvjdn0LwqgjwWSBDMG/GtejC3S2xla zbkJyHD1im5YZFYyfSxt9z6bEnajjJ0pOunQc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=b0Z1CYwKLnLjlLuTRAvVqGb4C3/ai0Sv79Sf+0Od5TU=; b=CDcNVwhVp0LWc6VrSfwNafh1tFvUs5ZPUzZfSfo6pu1bwD4h3J9txbINrw0FGhXgX0 0pulGyfi+PSaRfPdbj/F0tTD3rLr23uuapaRuysEpywsDxAz9vj0pmZfUmEBOxFXscSC primYVuAveE7h61AC584hW3UORImBvgOlsfGLR2ECmUcxJZhFOg3jnJrwpRB6KA3DBgT J07wf1bNrADXuoqp5SOFQgKUgRay11o8m49UvvkC65Z8OBvWkuHeQNcby8T+1I8bQzft MoXKMTG7WuaoI/diKHHHEyGfVtj3NyYyyYsnXyrwhGQYAlFL8jTVHU9wQvvPyX/KnLXz jQqw== X-Gm-Message-State: APzg51BlkyvkNtQN0sMpuzSaSjL+/CxhkaHHvCmBVyE2wIKAlCE0gpZu 7FCvISEZHriFCGGoLZvHVHOYnw== X-Received: by 2002:a17:902:9a8a:: with SMTP id w10-v6mr18129539plp.14.1537057871185; Sat, 15 Sep 2018 17:31:11 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id h132-v6sm15349764pfc.100.2018.09.15.17.31.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 15 Sep 2018 17:31:08 -0700 (PDT) From: Kees Cook To: James Morris Cc: Kees Cook , Casey Schaufler , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , LSM , LKLM Subject: [PATCH 08/18] integrity: Initialize as LSM_TYPE_MINOR Date: Sat, 15 Sep 2018 17:30:49 -0700 Message-Id: <20180916003059.1046-9-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180916003059.1046-1-keescook@chromium.org> References: <20180916003059.1046-1-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The integrity LSM isn't really an LSM in that it never calls security_add_hooks(), but it uses the early security init because its hooks need to run before the VFS layer initializes. This is the very definition of a non-exclusive LSM, so mark it as such. Signed-off-by: Kees Cook --- security/integrity/iint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/integrity/iint.c b/security/integrity/iint.c index 20e60df929a3..d886183848c4 100644 --- a/security/integrity/iint.c +++ b/security/integrity/iint.c @@ -176,6 +176,7 @@ static int __init integrity_iintcache_init(void) return 0; } DEFINE_LSM(integrity) + .type = LSM_TYPE_MINOR, .init = integrity_iintcache_init, END_LSM; -- 2.17.1