Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1136653img; Thu, 28 Feb 2019 13:43:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IYdOKLUkKY5qJFbyl4VuT5lhGu2RX+NNRamjSKXBF/fEZwzRRRQmI2Rqky3j0kqFM//liyD X-Received: by 2002:a62:1212:: with SMTP id a18mr1782630pfj.177.1551390208543; Thu, 28 Feb 2019 13:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551390208; cv=none; d=google.com; s=arc-20160816; b=fIqrFEyI4Tbmd29jsGg7N40mwHPdmJBJkmktoo3un2XavaYwshRdxFStqFn7VwMIkN v9mtQYmnA96oQl40OMCMNaX+7GRNT7LNhP2mDxQ18psVSrqc60szJFRYWP0Ai4ePet17 Qb32Mkji0bZsT93eThWQsRxmTeqNedB4HY9XShKbHcSIEQJ/VnJkb3HqCg1ZZQjx0Jxe qhPZ7d5i/G4lodEMJ8Gb9c7RQ4zmAvZtM5MPDLwWPCnzp4jBzUdpZj3snWwZ0sZ11vr5 iLjZLsSeuCb4mLeHQSoYW3iaP8k2HcTY/2mgjDLUvGyxGF/FccJRNkLa9lG/cirHBWjz 3L3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=89pCqV1bZHjEtzvBrwueSiOrwTE/dXNQ51HDV8YV2f4=; b=xXeZlyQOPgyVRmbSNzMUChV8lTzCn8N5xtaQeivbGONQFRw8VeyGRz/AzgZc8O3QBm R2nLjdcOgF8/wIz4RAJc2jz0PcmyrcUjggSSVPJGQzyJnmSkSdIq8f8SZfVcqer6CEwK Lf7fg60fKJsiQuWELVReqXO6fC8jkwoadfiSfFtW6s/tDbfdPkgDVFVUTFUTwe/kDG9B /XsQddqVStKFGgVBR1iqq3FobLmsszaB3d08pURJjW4wrnVjn5GBf5B55gYOMUujxY48 VpOvMTCiO30V68AqMNkjMzE9EH0m9kpM0Vn9ajU5KMSJlcPEUFOIQWq6tYnBIDRimWZr A25A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b30si10547821pla.308.2019.02.28.13.43.13; Thu, 28 Feb 2019 13:43:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388032AbfB1Tyj (ORCPT + 99 others); Thu, 28 Feb 2019 14:54:39 -0500 Received: from mx2.suse.de ([195.135.220.15]:48636 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726231AbfB1Tyi (ORCPT ); Thu, 28 Feb 2019 14:54:38 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 79E0AAFB8; Thu, 28 Feb 2019 19:54:37 +0000 (UTC) Date: Thu, 28 Feb 2019 20:54:35 +0100 From: Petr Vorel To: Mimi Zohar Cc: linux-kselftest@vger.kernel.org, Shuah Khan , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/5] selftests/ima: define a set of common functions Message-ID: <20190228195435.GA20335@dell5510> Reply-To: Petr Vorel References: <1551223620-11586-1-git-send-email-zohar@linux.ibm.com> <1551223620-11586-3-git-send-email-zohar@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551223620-11586-3-git-send-email-zohar@linux.ibm.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mimi, > Define, update and move get_secureboot_mode() to a common file for use > by other tests. > Signed-off-by: Mimi Zohar Reviewed-by: Petr Vorel ... > ifeq ($(ARCH),x86) > TEST_PROGS := test_kexec_load.sh > +TEST_FILES := common_lib.sh In case there might be some common library for whole selftest, I'd name this ima_lib.sh. (even it won't be in the same directory it might be better for readability). > include ../lib.mk > diff --git a/tools/testing/selftests/ima/common_lib.sh b/tools/testing/selftests/ima/common_lib.sh > new file mode 100755 > index 000000000000..5583ea74c14e > --- /dev/null > +++ b/tools/testing/selftests/ima/common_lib.sh > @@ -0,0 +1,24 @@ > +#!/bin/sh > +# SPDX-License-Identifier: GPL-2.0-or-later I'm sorry, that was me who advised GPL v2+ instead of GPL v2 only :). ... Kind regards, Petr