Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3523rwi; Wed, 12 Oct 2022 15:02:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6SK2qZUDf2tgfro9ePYl9tHVsD/9Z421NqY5i6PJHTluGXWbS75TZ0qGPQC246Vp/EU03f X-Received: by 2002:a05:6402:538f:b0:444:c17b:1665 with SMTP id ew15-20020a056402538f00b00444c17b1665mr29689173edb.98.1665612136622; Wed, 12 Oct 2022 15:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665612136; cv=none; d=google.com; s=arc-20160816; b=PyBfCXGygwHVOj9ZaCYj6SKaaNxG2SXgBgPo6xQffLUv1fplcB3PshFLROrW3dpZsD i7qT1vuugadv8lfIuzEIop3tqWe2mG7reZJsYxxqgYJNCNTiAoO2eb1ymNeBUlP4WhKO Jnz5hnqdDXVWcy+RDcd4mLevQIByZI0TR9+6hAJQ8Xv5z6QnBWEJkd9q/HREtGPz7U6b q+bmRd8lKSHokLY8D+sILCH+8mcerXbBwyjyR95sDaq4JYzEdQaTfGeE61NyryT5P4ri xNzR0HIQMpMmVnV+QalYL98UfZ4NoLk6z0fAvc3Cse2ybHhWzjzF4RWqZX/Pm6jh5fyk raxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VM+u8f7RSNsTewSJ7H/bqhlfbHTeOYA+m5pT1VBcZLs=; b=zqG0w3HxEHlL2noyan33eemClz/wUEsCGjv+yrw3OX8FcqD6OMzAkwEN+pRJW4QEcZ 46SFIU7k7lexY+SO3+aStg6H+x121J6Kl8XAq7yieMJ0sZongsFOHLextJIw0U7yE64D NRvglf2Zoj0NW3o4Gg2O/DYud3LdcVjiRbsGP30HCx7ffsELe82zJLPRVZParQWMEMlN nfKhhiLolVjU+o2Z0aDnbMVddRT/B0QfqxS9x/ndzY9d7AITfO1AHTb2wKEGi8VEkqZ9 lmN+6QEMqmPiNXtHS8vQm2c0nc9fs4Dejix6KF4Yb8b/NgX0zy6IOV3Xp2qV2FkvI2nV oj6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=BijU0W5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a17090636d000b0073d8b93700csi15252060ejc.165.2022.10.12.15.01.48; Wed, 12 Oct 2022 15:02:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=BijU0W5d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229965AbiJLVOv (ORCPT + 99 others); Wed, 12 Oct 2022 17:14:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230036AbiJLVOr (ORCPT ); Wed, 12 Oct 2022 17:14:47 -0400 Received: from smtp-1908.mail.infomaniak.ch (smtp-1908.mail.infomaniak.ch [IPv6:2001:1600:4:17::1908]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0090115C1C for ; Wed, 12 Oct 2022 14:14:34 -0700 (PDT) Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4MnllX3JxtzMpvW1; Wed, 12 Oct 2022 23:14:32 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4MnllV5LYyzMppqp; Wed, 12 Oct 2022 23:14:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1665609272; bh=XmjSicC4hYC+1A7pG8Edb0BlTaLN98y6T76Fm2lChYo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BijU0W5dbOqFEFzsl42HfXcLOIRcNx7g0Klz4LVSfmnZqFAy4Qxx0wt6JRLC7LiiN +paCvtyQ0UpEOMj55k8K0WeVinscf7pla44LU2QUC3Q+/R7J0K4nrI+g5Hs28jfKYk edyM/vBF0Q2h4ZfnwsFxrXizYQ0cf3wTkI9lwI0M= Message-ID: Date: Wed, 12 Oct 2022 23:14:30 +0200 MIME-Version: 1.0 User-Agent: Subject: Re: [PATCH v38 01/39] LSM: Identify modules by more than name Content-Language: en-US To: Casey Schaufler , casey.schaufler@intel.com, paul@paul-moore.com, linux-security-module@vger.kernel.org Cc: linux-audit@redhat.com, jmorris@namei.org, selinux@vger.kernel.org, keescook@chromium.org, john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org References: <20220927195421.14713-1-casey@schaufler-ca.com> <20220927195421.14713-2-casey@schaufler-ca.com> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= In-Reply-To: <20220927195421.14713-2-casey@schaufler-ca.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please Cc me for the next versions. On 27/09/2022 21:53, Casey Schaufler wrote: > Create a struct lsm_id to contain identifying information > about Linux Security Modules (LSMs). At inception this contains > a single member, which is the name of the module. Change the > security_add_hooks() interface to use this structure. Change > the individual modules to maintain their own struct lsm_id and > pass it to security_add_hooks(). > > Signed-off-by: Casey Schaufler > --- [...] > diff --git a/security/landlock/setup.c b/security/landlock/setup.c > index f8e8e980454c..fc7b69c5839e 100644 > --- a/security/landlock/setup.c > +++ b/security/landlock/setup.c > @@ -23,6 +23,10 @@ struct lsm_blob_sizes landlock_blob_sizes __lsm_ro_after_init = { > .lbs_superblock = sizeof(struct landlock_superblock_security), > }; > > +struct lsm_id landlock_lsmid __lsm_ro_after_init = { > + .lsm = LANDLOCK_NAME, Please only use one space after ".lsm". This applies for other commits as well. This command will do the trick: FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch --tree-filter "clang-format-14 -i security/landlock/*.[ch]" v6.0-rc7..