Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp128253rdf; Thu, 2 Nov 2023 16:12:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFnmBq+jWbPYmAWtUZ0l6rIhn6O2Ccj0+nBxsYYjNhFvuqZmwjNEdQx9Q+GkpygxwlbABDa X-Received: by 2002:a17:902:b783:b0:1c9:ff46:163d with SMTP id e3-20020a170902b78300b001c9ff46163dmr20155125pls.38.1698966758253; Thu, 02 Nov 2023 16:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698966758; cv=none; d=google.com; s=arc-20160816; b=dhj6mqa/FgepSQ6fKMLrG5876YxuJCfEV3A6hWXZGpByWN7Af2AcGBzzat3buA7OMt U+uc+qzupg57VHNKqhqHqPLtIv6cuojQ2dIFSCuB6HKaze6zVWzj7e6T/S5qMUi/5NCr 0dO+foUa4d61y4cPzzCmiXpv9M4yqPXFhNGF2BIMUjPwBIJQ3hgOo8SnQW8GuAPTGXNW wZRJtWr7ph1avFwldJv8iTZrnT9EkKoB9q9tSlGyeGQKlOQvAdQ3waJTCriJ887faLjh xiEvnCx+NbJqvxu5oTvA72c7BftpBouTxTtctor2d7QO0HEH1R3dM2DteF+kW/e0auAg qFiA== 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:dkim-filter; bh=sN/Mi76Mk3NmyPbtaF7zfyETOmjtDtZDxeZhp7Ju7YM=; fh=fAqrlMYH1fEHmaaZ3DhbJc1a1C2SUC29hk9YBohK+zY=; b=q1o4GgdSJeqDkxISPaYs9X0Rs9jAJWl4bsKok0sGFKM8nyIZUgXmoSMxN1EP22t1we ePzrPNNSigIbBJQFTM+qpcMp0tHGd7HpdF3+Or45ig6K0/l3qxDpF4iQWVGTuy/+GYFj FPFYBVoouKuDtJXryZuTsOyPE4biIMoNl3AoK/FQcoce5OCekiuffpnEBN8V8fziGYb+ szRoJ8pJXP1QAhB58N0beXVB1bDORCbOLyUkEZP4rFUnqIZDlGETzguxFhWTk5/SJHb+ FEyfKg1JRCKwclunQuuB9iTmUXQx/c/M/bROjVP8XoUK6afJ+8ZV0JCXxFWincRbQJ/R hmJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ICZrtpk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d3-20020a170902cec300b001c76a2ebda0si417661plg.502.2023.11.02.16.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 16:12:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ICZrtpk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CDA9C8236252; Thu, 2 Nov 2023 16:12:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377573AbjKBXME (ORCPT + 99 others); Thu, 2 Nov 2023 19:12:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235013AbjKBXMD (ORCPT ); Thu, 2 Nov 2023 19:12:03 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17194197; Thu, 2 Nov 2023 16:11:59 -0700 (PDT) Received: from [10.137.106.151] (unknown [131.107.159.23]) by linux.microsoft.com (Postfix) with ESMTPSA id 4D22220B74C1; Thu, 2 Nov 2023 16:11:58 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4D22220B74C1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1698966718; bh=sN/Mi76Mk3NmyPbtaF7zfyETOmjtDtZDxeZhp7Ju7YM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ICZrtpk2pjn0h7boORoZutOlTmaL7xZpFUzWC2vlIp2RQnmeqzZn60bjXDty3++Py g83lnITy3AoPGqfS3IA9KbAKi63F6DMpoSJDa9mzxKM6+qQ9X7VQxxTTsuKdrf9F4I raKYGcAXtGGLsMJ/W7Q6U9XPb2IrtVDhMZXj+vz8= Message-ID: <8d4673ce-e5cf-4c70-971a-b9d0a6cdcbc9@linux.microsoft.com> Date: Thu, 2 Nov 2023 16:11:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC v11 18/19] ipe: kunit test for parser Content-Language: en-US To: Paul Moore , corbet@lwn.net, zohar@linux.ibm.com, jmorris@namei.org, serge@hallyn.com, tytso@mit.edu, ebiggers@kernel.org, axboe@kernel.dk, agk@redhat.com, snitzer@kernel.org, eparis@redhat.com Cc: linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-block@vger.kernel.org, dm-devel@redhat.com, audit@vger.kernel.org, roberto.sassu@huawei.com, linux-kernel@vger.kernel.org, Deven Bowers References: <1696457386-3010-19-git-send-email-wufan@linux.microsoft.com> <88259677752389b350614857e6003b8c.paul@paul-moore.com> From: Fan Wu In-Reply-To: <88259677752389b350614857e6003b8c.paul@paul-moore.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 02 Nov 2023 16:12:35 -0700 (PDT) On 10/23/2023 8:52 PM, Paul Moore wrote: > On Oct 4, 2023 Fan Wu wrote: >> >> Add various happy/unhappy unit tests for both IPE's parser. > > I'm going to suggest: "... for IPE's policy parser." Yeah this sounds more precise. > > Also, aside from the policy parser tests, are there any other IPE > functional tests? We do have a testing guideline for new LSM > submissions: > > "New LSMs must be accompanied by a test suite to verify basic > functionality and help identify regressions. The test suite > must be publicly available without download restrictions > requiring accounts, subscriptions, etc. Test coverage does > not need to reach a specific percentage, but core functionality > and any user interfaces should be well covered by the test > suite. Maintaining the test suite in a public git repository is > preferable over tarball snapshots. Integrating the test suite > with existing automated Linux kernel testing services is > encouraged." > > https://github.com/LinuxSecurityModule/kernel/blob/main/README.md#new-lsm-guidelines > Yes we do have a test suite. I will add it in the next version. -Fan >> Signed-off-by: Deven Bowers >> Signed-off-by: Fan Wu >> --- >> v1-v6: >> + Not present >> >> v7: >> Introduced >> >> v8: >> + Remove the kunit tests with respect to the fsverity digest, as these >> require significant changes to work with the new method of acquiring >> the digest at runtime. >> >> v9: >> + Remove the kunit tests related to ipe_context >> >> v10: >> + No changes >> >> v11: >> + No changes >> --- >> security/ipe/Kconfig | 17 +++ >> security/ipe/Makefile | 3 + >> security/ipe/policy_tests.c | 294 ++++++++++++++++++++++++++++++++++++ >> 3 files changed, 314 insertions(+) >> create mode 100644 security/ipe/policy_tests.c > > -- > paul-moore.com