Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp182515rdb; Thu, 19 Oct 2023 00:46:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvaVt9Ewn7r4CIzsxeY4KLjFnT8P/NSQzEBaV1ttYOvJritTV2/FmAlx7Keksrspd83T8J X-Received: by 2002:a05:6a00:b90:b0:6bb:8982:411c with SMTP id g16-20020a056a000b9000b006bb8982411cmr1468566pfj.8.1697701573455; Thu, 19 Oct 2023 00:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697701573; cv=none; d=google.com; s=arc-20160816; b=ii3F0DJhHnlaxr9/mAc8unBVRa4Z3oDoJGczN2h09zUKafMwoApRubouqkk3ctIIUB F857OhLZZnu8ixoGBvkoJO+kj5IvryxFWCwPkLrnERPEdIxEzmyGrQcpjoScMmaBq1FA 6p2E/CgwSrNWgxWwAtKcy5waHXFwp0VbcywPvehYZJZs7sKm7PWlcxrCYBq+HXCeUeb6 y6V+cA/MYHMy2e32p1va23ANq81OCK/vCMpZXwmIwVPPAMyRdPPmavrajwQteROpESGR KlEsyz6nlU5idjWY0KugjW77oYo9egTrrtXknpAhWVEWw2dbD+hLexZVEgA8yPmc32xc YB3g== 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=8gYECYU+iu94epO6UOOezJL3eY1Dlcel90ZzPHSeFTs=; fh=pKXkorD3iM4dV8YJ1V/KXaGHaslBMM1K24ARfm2xiGA=; b=csIy/G/hcf+MYeO26ESafne1aqJW42QbXGrt+XlbI97qxzFbbLtS/aA3NKf7t1XjpE XaLgU2avduW8Ia5pqJUKRFOpPvRM8O25JsMi7H4u1d5q+YNOomNoesCDAZuwsfK9e96b 8U3ps+m02FYm9Ci5V/MWnQrE9/Ly/QX0X2w1tpuTVG5IyVjBwt5FnHRoJvYs4ErvQLij 5YF24dWwjmYEmt5CaiaX2FhctkJvVeZE6qErW89Sd/EPziBxYW35JYegjEjLA7RW9yWK 4AeZVAuzsfd0fbsMOjFCJlHKsEMMXdO5/gHpDHR1egYOGLZE0r9/Fzc2QftAFeNRe3XS vfRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id j1-20020a056a00130100b0068c0300a3f7si5855362pfu.279.2023.10.19.00.46.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 00:46:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id C6122817C1E9; Thu, 19 Oct 2023 00:46:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235013AbjJSHp5 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Oct 2023 03:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232769AbjJSHpy (ORCPT ); Thu, 19 Oct 2023 03:45:54 -0400 Received: from frasgout13.his.huawei.com (frasgout13.his.huawei.com [14.137.139.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00A0BF7; Thu, 19 Oct 2023 00:45:51 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.18.147.229]) by frasgout13.his.huawei.com (SkyGuard) with ESMTP id 4S9zvl69lbz9v7Qx; Thu, 19 Oct 2023 15:32:51 +0800 (CST) Received: from [127.0.0.1] (unknown [10.204.63.22]) by APP2 (Coremail) with SMTP id GxC2BwDXLrqN3jBl0dl3Ag--.35623S2; Thu, 19 Oct 2023 08:45:27 +0100 (CET) Message-ID: Subject: Re: [PATCH v15 00/11] LSM: Three basic syscalls From: Roberto Sassu To: Paul Moore , Mimi Zohar 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, linux-integrity@vger.kernel.org Date: Thu, 19 Oct 2023 09:45:14 +0200 In-Reply-To: References: <20230912205658.3432-1-casey.ref@schaufler-ca.com> <20230912205658.3432-1-casey@schaufler-ca.com> <468436cf766732a3cfc55d07ad119a6ccdc815c1.camel@huaweicloud.com> <6f33144c850c40e9438a6de2cf3004e223508755.camel@huaweicloud.com> <2637d5294d4a7ae871f1b758f5a30234836e2463.camel@huaweicloud.com> <283bf52d-af6e-4d20-a5ba-d98511c2e530@huaweicloud.com> <80f05011bf9fe19bde1f923e98c2db69ffc91065.camel@linux.ibm.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: GxC2BwDXLrqN3jBl0dl3Ag--.35623S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Zr4fXFy7Xr17JF15Xw48Xrb_yoW8AFyDpF W5ta1jkr4qvr4jyws2yF4rtw4jyFZ3XF97X345Jr1rA3s8JF9YqrWfuFW29ryUGrsYya40 yF42qa43ua4DZ3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 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/1tbiAgAPBF1jj5E3+AAAsm 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 19 Oct 2023 00:46:07 -0700 (PDT) On Wed, 2023-10-18 at 16:40 -0400, Paul Moore wrote: > On Wed, Oct 18, 2023 at 4:23 PM Mimi Zohar wrote: > > On Wed, 2023-10-18 at 12:35 -0400, Paul Moore wrote: > > > On Wed, Oct 18, 2023 at 10:15 AM Roberto Sassu > > > wrote: > > > > On 10/18/2023 3:09 PM, Mimi Zohar wrote: > > > > > > ... > > > > > > > > I agree with Roberto. All three should be defined: LSM_ID_INTEGRITY, > > > > > LSM_ID_IMA, LSM_ID_EVM. > > > > > > > > I did not try yet, but the 'integrity' LSM does not need an LSM ID. With > > > > the last version adding hooks to 'ima' or 'evm', it should be sufficient > > > > to keep DEFINE_LSM(integrity) with the request to store a pointer in the > > > > security blob (even the init function can be a dummy function). > > > > > > First off, this *really* should have been brought up way, way, *way* > > > before now. This patchset has been discussed for months, and bringing > > > up concerns in the eleventh hour is borderline rude. > > > > As everyone knows IMA and EVM are not LSMs at this point. > > Considering all the work Roberto has been doing to make that happen, > not to mention the discussions we've had on this topic, that's an > awfully small technicality to use as the basis of an argument. Sorry Paul, but I've been working on this patch set for a long time and you were also involved in the prerequisites (like making the 'integrity' LSM as the last). I thought it was clear at this point that we were going to add the hooks to the 'integrity' LSM. I really have no problem to rebase my work on top of other work, but I was very surprised to see LSM_ID_IMA instead of LSM_ID_INTEGRITY, and at minimum this should have been agreed with Mimi. And also, I was not convinced with the argument that LSM_ID_IMA should represent IMA+EVM. Roberto