Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2975979rdg; Tue, 17 Oct 2023 00:02:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHF+6ee3dS0cYNF4wapFLgZ5VYpZl7uKVXq9wwLyRB7vbfpdnjHrzpDEzdX7KV+Mev68ljs X-Received: by 2002:a17:902:fb03:b0:1ca:72f9:253a with SMTP id le3-20020a170902fb0300b001ca72f9253amr1554864plb.23.1697526138567; Tue, 17 Oct 2023 00:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697526138; cv=none; d=google.com; s=arc-20160816; b=lU8WdRU8brVyuO2oOu6JY1aE89pEwenX7IyD7iSXhbg6wfS+lv3xaqXadICerp125y eE8hDu82lfheJaokhfdCXZCOPwMDMCfHwBrns/mO82QzOnqLj/K1RflnslA/t+yN2ngi n68FoihX0wVHgaFyd0gp7rkb1/YnI7POo69gr+j4LBCYgPbrWsm5h1qlsRzAYfPeZiRN 6+rjt292EMzHcXp5GlqAlYxDsQ9nv1rl9HKl6JN/HleLmo1oGgnzHQcWvr95cIsiGU3M xI0WMP8yMhczI5ceBbx8pebLd56PIGLQn0vjrTBCkcSPj9dMpXwwAKc63YNT1caBE0GT F9ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=dJeDDSNdRF5664YHYc8MVgwSt4q8SMCoSrAq4NDXfMs=; fh=1kPrgnJZqVqW21q2nyf7CuH5L0rn5QgHN5aFt5mZG0Y=; b=aw4YcgimdTgyqCBQoSnSGBw7Efepswg4d39BCE7HhTxZxhOxUYwfVsAvMaEbsD7zbP vx7l85lSjcbGyUAtabeco8AwroGS6me5rSeMmHQQImF8p30BbUT1gNnrfMUkiENXKaZn ft4XZYfAt8m8eDYXsoMihUQ6i++Fg07/5udT6ufahAPllT1cWgC/N6SAicc5xYYR7K6A rDbsPh9mtcaQ8xs/eDrjoq2SreoIdFrjWlCi6THurulKHaAMuKBFJ0erFZdkMkvBLoSV E4/rUlJuucfgOYpGF6Qri7zFRvqhakTm9zPtqxyqjAvfH/B+QjJmbyld8klmJrRcMVXB UoAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id l18-20020a170902eb1200b001b8698149fbsi1084851plb.477.2023.10.17.00.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 00:02:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C0B8C80AEB19; Tue, 17 Oct 2023 00:02:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234444AbjJQHBv convert rfc822-to-8bit (ORCPT + 99 others); Tue, 17 Oct 2023 03:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjJQHBu (ORCPT ); Tue, 17 Oct 2023 03:01:50 -0400 Received: from frasgout11.his.huawei.com (frasgout11.his.huawei.com [14.137.139.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7015783; Tue, 17 Oct 2023 00:01:45 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.18.147.229]) by frasgout11.his.huawei.com (SkyGuard) with ESMTP id 4S8l1p3p5Hz9ylWC; Tue, 17 Oct 2023 14:48:46 +0800 (CST) Received: from [127.0.0.1] (unknown [10.204.63.22]) by APP1 (Coremail) with SMTP id LxC2BwAXcJE+MS5lg+dfAg--.50713S2; Tue, 17 Oct 2023 08:01:26 +0100 (CET) Message-ID: <468436cf766732a3cfc55d07ad119a6ccdc815c1.camel@huaweicloud.com> Subject: Re: [PATCH v15 00/11] LSM: Three basic syscalls From: Roberto Sassu To: Paul Moore Cc: Casey Schaufler , linux-security-module@vger.kernel.org, jmorris@namei.org, serge@hallyn.com, keescook@chromium.org, john.johansen@canonical.com, penguin-kernel@i-love.sakura.ne.jp, stephen.smalley.work@gmail.com, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, mic@digikod.net Date: Tue, 17 Oct 2023 09:01:15 +0200 In-Reply-To: References: <20230912205658.3432-1-casey.ref@schaufler-ca.com> <20230912205658.3432-1-casey@schaufler-ca.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 X-CM-TRANSID: LxC2BwAXcJE+MS5lg+dfAg--.50713S2 X-Coremail-Antispam: 1UD129KBjvJXoW7ZryfurWftr4Duw15tF4xZwb_yoW8ur4rpF WDKay0kF4kAF1jkrn7Za1rAa48Kryru3yjgF98Cry7ArW5CFy0grW2kFW2vryUWrn3ta4r Xr4UKFyDC3Wqy3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkjb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k2 6cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4 vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7Cj xVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIEc7CjxV AFwI0_Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l42xK82IYc2Ij 64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x 8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE 2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42 xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIE c7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UWE__UUUUU= X-CM-SenderInfo: purev21wro2thvvxqx5xdzvxpfor3voofrz/1tbiAgANBF1jj5EcEgABsk X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 00:02:14 -0700 (PDT) On Mon, 2023-10-16 at 11:06 -0400, Paul Moore wrote: > On Mon, Oct 16, 2023 at 8:05 AM Roberto Sassu > wrote: > > > > Sorry, I just noticed LSM_ID_IMA. Since we have the 'integrity' LSM, I > > think it should be LSM_ID_INTEGRITY. > > > > Mimi, all, do you agree? If yes, I send a patch shortly. > > I believe LSM_ID_IMA is the better option, despite "integrity" already > being present in Kconfig and possibly other areas. "IMA" is a > specific thing/LSM whereas "integrity" is a property, principle, or > quality. Especially as we move forward with promoting IMA as a full > and proper LSM, we should work towards referring to it as "IMA" and > not "integrity". > > If anything we should be working to support "IMA" in places where we > currently have "integrity" so that we can eventually deprecate > "integrity". Hi Paul I fully understand your argument. However, 'integrity' has been the word to identify the integrity subsystem since long time ago. Reducing the scope to 'ima' would create some confusion since, while 'ima' is associated to integrity, it would not encompass EVM. The term 'integrity', although it is a property, it precisely identifies in the kernel context the scope and goals of the subsystem, and is general enough to encompass new projects going in a similar direction (such as my integrity digest cache). From a technical perspective, at the moment it is not possible to split 'integrity' in two standalone LSMs 'ima' and 'evm', as IMA and EVM work on shared integrity metadata. Also my integrity digest cache is using the same metadata. In addition, making IMA and EVM as standalone LSMs would require a much longer development cycle to make them use disjoint metadata and to define proper communication interfaces. It would be not anymore a technical move of function calls from a place to another, like for the current patch set, but would require substantial time to validate the new design. To submit my patch set in the current state, the only thing I need is to have LSM_ID_INTEGRITY defined. Roberto