Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1638221rda; Mon, 23 Oct 2023 20:54:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqTfCG4CK/pRFOvL/Sv5/Zd+EMWCHVxns4UB+0rwMbGt751K86WpxAqfntaPpodhf1Htv+ X-Received: by 2002:a17:90a:41:b0:27d:50a:f8a6 with SMTP id 1-20020a17090a004100b0027d050af8a6mr11528485pjb.10.1698119697303; Mon, 23 Oct 2023 20:54:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698119697; cv=none; d=google.com; s=arc-20160816; b=ZyLAyW1qSg1tfgiKgHK+3vEJblT/ZvLrkM7pmeCLTpp+aENFpDQqxWRHXHZcHD3wdb 66CI7RwRIMBg5FZ9W8f7d5Z7rLc7NvgrvDbKBCB39EvgNRxk3EpPDRuriJv3zHOhq5Cu VIgvyEQEwKbrpiaGxdZC2yN9HGRBa11qVTF3em9HHquqjgePrUlmsi0mPLQ/GUzfuf4v IfrXHqU3fg5x+PrnQ8YA0X932nt9rqvvJxBUGYMrzCXgAke24LorWWsosqh0CaILD2uG pNiy3Fn8TZ2Wu41l/KR/gdGQC84DSSwg4ktLB8o6l0HZ23rTB9yoThD9BZix6JBUub7A zxUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:dkim-signature; bh=XsaNGjlcimJtQjiAwAEMf2P9+0lBW+WKE/hjZAD7dek=; fh=fHHNkGg+NzKoJxHGMh0JSMLpg18Ht1OPApOBL8ui3GA=; b=M76jg8HTafZoObSad43EuL2XdmbGkoq4svskAJ91MIYXuLDSf/XwYSB2i80qhps0c8 UuA8yTjNzRv1Bu6UpNk0+ug8qHnjEZYBKjqbuAY12VJhiCfiKxJ0yYCfhnzQ0HMo/6a0 k3SDqetXDHAPaG28lcyyFeN66tb2imf8aDpA4gscXTHim/Z2uoiMvgHFag4rZTylRGbg HBnS98iNC4su/yZcCvYQZfNfgfeRMJKtGXevyJm7e+pqAxS5T2OvyJjCybFy2gBYUP0g bN+dB63D89QBjOZQKUgoXSWGddFODBIP1Y0vro44sEEhPkv8aSc5fS/umktcokVSP9Mb sFrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=ZzJPx0y1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q7-20020a17090a304700b002776e57a5d5si9671330pjl.94.2023.10.23.20.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 20:54:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=ZzJPx0y1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8ADF8809D321; Mon, 23 Oct 2023 20:54:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233799AbjJXDyb (ORCPT + 99 others); Mon, 23 Oct 2023 23:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232544AbjJXDxh (ORCPT ); Mon, 23 Oct 2023 23:53:37 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 056791725 for ; Mon, 23 Oct 2023 20:52:38 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-77897c4ac1fso262422585a.3 for ; Mon, 23 Oct 2023 20:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1698119558; x=1698724358; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date:from:to :cc:subject:date:message-id:reply-to; bh=XsaNGjlcimJtQjiAwAEMf2P9+0lBW+WKE/hjZAD7dek=; b=ZzJPx0y19ajQdpatRHIV9OeYbUZdaaBZFXCshlqwJCZYO2u3kgFCbgta/xGM2jnj2p 8+kCX5JTZZ1VehON7byPvfJ5U6/lZGLLV2HrO7ImJwWRGysVUGepVz4oGfXDSxWpS01H llWr0/T3mPVztmuSNR7LotGveoiuz5fcXyqySGe9L3uM8KoTajs1X9PyyL0LMbDIr0zz wU8i7Zkr8+w0f9km6wDCmpyvw8I6jpaFQ46JySPHx7VHXazCIRGoGTUGtkcUXyKSOFyy w/aOFa8b5S0U1O6CjzMwBBUajPeEcD5Cat7S04a9vo3XlUfv/5SiVcqa5keww9C74lKY DXOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698119558; x=1698724358; h=in-reply-to:references:subject:cc:to:from:message-id:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XsaNGjlcimJtQjiAwAEMf2P9+0lBW+WKE/hjZAD7dek=; b=oulvM8iOsZ/hRShFpeX4CG/vU6ArDmdcTpwNvjSArlE/wa3zrz6m9i2KWrDpleFGRr ttgvFo+N+dfCSay+dDWStm3JEZVAe+Xxtctiz//Yklm0eyuoGghAiOsAIlITPtpFA7rD YNuksqcB091lT6xflksf/GOVaIvXi0zVsmnQtpqrrwZSPI6tV4ntZNsONi1zkRNRE01r u6J8q0vw0Ecl1PxCn+/iBQnjYR6i/pRtGReZwlwCWxTdjBBOrRILO5LT3yTLYixiL4+5 f5uhIszg6xhS+THY92qEa6TnAlDzaXfC4A+RPQJBTzhuTiSgryvgSIqokilB5eFvTTah muOg== X-Gm-Message-State: AOJu0YyiBLceCWNmuvsfn/jynRG+XN8qUCt/nTIYwDqlCft6xVQ6vUwG 4lor7Qysiz4ZOImP0F+QamP3 X-Received: by 2002:a05:620a:430d:b0:778:8dc1:bb7b with SMTP id u13-20020a05620a430d00b007788dc1bb7bmr13244374qko.27.1698119557740; Mon, 23 Oct 2023 20:52:37 -0700 (PDT) Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id s4-20020ad45004000000b0063f88855ef2sm3286811qvo.101.2023.10.23.20.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 20:52:37 -0700 (PDT) Date: Mon, 23 Oct 2023 23:52:36 -0400 Message-ID: <88259677752389b350614857e6003b8c.paul@paul-moore.com> From: Paul Moore To: Fan Wu , 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 , Fan Wu Subject: Re: [PATCH RFC v11 18/19] ipe: kunit test for parser References: <1696457386-3010-19-git-send-email-wufan@linux.microsoft.com> In-Reply-To: <1696457386-3010-19-git-send-email-wufan@linux.microsoft.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 23 Oct 2023 20:54:54 -0700 (PDT) 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." 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 > 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