Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp136438pxb; Tue, 15 Feb 2022 09:55:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxl15LBBH7U9ggFT0H0Ui/bv6jYjyKzgicWfrxsPHCeKgIFhiKxheE8+w7k4Ta7IHySct/R X-Received: by 2002:a17:902:cf0d:: with SMTP id i13mr5337577plg.141.1644947743976; Tue, 15 Feb 2022 09:55:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644947743; cv=none; d=google.com; s=arc-20160816; b=WSz9GhYbTsEk2l+ablv5934tqarjAa/lNT9lojB1qgvEvzxjuYTtAMS30ij+D57Wsl /gqc466pW+lfSDSv1ErZrm1BecbS4wgnqVxMwvRPJ2d8a4USvz+So2kxNiy5Ji2lwJL6 ZQ1dcoB18jRoofDoJHC5436/nuiEH6I9joPnCnuzSJEv0dh649GDnav7HwcEEjTO1Dfg Qt8rER8XM+BzonFe081Kyzr205vuAqwqI+TMIzN09R5iP9RmL7M8ZNcUHCrAhM+EB1TY wV1CVD7fTPvTXKXVyw2Yl5E1axqy9eL22qhrkRBTm3jWUAUgAYUwZAkYz8rzD3QGNlh9 DpFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=TVqVFTWptZ7SrHWeQOqA8cHPP39pTm3Vs4rpqsumx0s=; b=oqYsprI609mwAn3rHKrmf71lYGmyMATtfppLGL899bmEQvqRlBET/ClZps4NMB0bub MvBpqttbEunaP4w2Kv5t1OH4I7zYEp2JzHq7WE80hQLOtt5o4o69RqbyyWaGpCXVy0hn DEfUEwuQNk3OpzuQM/quZgIsqQ87cMF/DAXhwd3Ajl4e2A2oXNiMM9PIRGrmd1I4lS87 EnlpT+zwdeilhQxpXv/IDiktsKScv6jnpBzRY2WNtyEUeFJGf7UUJftjfM1dZbqYOJIw aI72UhQTt+fFqeS3E4zx6u++IrFJOAdzqXVbZU+MTskbrhbZPjoH+RUJZ9vjepMp/iq9 OzvQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k184si3304317pgd.817.2022.02.15.09.55.21; Tue, 15 Feb 2022 09:55:43 -0800 (PST) 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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240235AbiBORFN (ORCPT + 99 others); Tue, 15 Feb 2022 12:05:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234951AbiBORFM (ORCPT ); Tue, 15 Feb 2022 12:05:12 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4382D11AA1F; Tue, 15 Feb 2022 09:04:59 -0800 (PST) Received: from fraeml708-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4JynQl6ZBqz67KsG; Wed, 16 Feb 2022 01:00:31 +0800 (CST) Received: from fraeml714-chm.china.huawei.com (10.206.15.33) by fraeml708-chm.china.huawei.com (10.206.15.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Feb 2022 18:04:56 +0100 Received: from fraeml714-chm.china.huawei.com ([10.206.15.33]) by fraeml714-chm.china.huawei.com ([10.206.15.33]) with mapi id 15.01.2308.021; Tue, 15 Feb 2022 18:04:56 +0100 From: Roberto Sassu To: Yonghong Song , "zohar@linux.ibm.com" , "shuah@kernel.org" , "ast@kernel.org" , "daniel@iogearbox.net" , "andrii@kernel.org" , "kpsingh@kernel.org" , "revest@chromium.org" CC: "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2 3/6] bpf-lsm: Introduce new helper bpf_ima_file_hash() Thread-Topic: [PATCH v2 3/6] bpf-lsm: Introduce new helper bpf_ima_file_hash() Thread-Index: AQHYImlh7GCSPCaH8Uastxbf0OJz26yUxh4AgAARGHA= Date: Tue, 15 Feb 2022 17:04:56 +0000 Message-ID: References: <20220215124042.186506-1-roberto.sassu@huawei.com> <20220215124042.186506-4-roberto.sassu@huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.204.63.33] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 PiBGcm9tOiBZb25naG9uZyB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