Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp4076248imc; Thu, 14 Mar 2019 11:42:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqypIZl/Pn9rUuLq7J0JVm13DHK4NQyM8MUg4WtJKCIJP1dY/5fx7HMB+gzObezGkHgl820/ X-Received: by 2002:a62:564d:: with SMTP id k74mr50361540pfb.19.1552588925560; Thu, 14 Mar 2019 11:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552588925; cv=none; d=google.com; s=arc-20160816; b=ERz9wUBpakOctEpcJOD4UsIJDkEr1OlUw+27oyILDf6dRY+4WV54YB+ThnBi4aVXay 6IzkfaATAQx/HMvAzW5n1R20DzT6wlsB6JCNrxG9bqeprH5z83/ewBzuGLDCqU4tOMy7 q9wsRJMGzGRKZypbhanh5SZyLoikpoTrGG1I96rj2CoOFSkxOtQ5xotKIHkuZ2BYx1o+ vsDLt1LWh7m3SFJRnCzTshbdkhHm7LoDMmvSD9fBtl4SSY9pa7qncvtBQukZVh0atrEb +fkDF3jMuJMxmxdNPrhEn29IzMokhwQPnpeee1sxDPR9K4xoSWnkYlrK7bDAu6/GZHJf rLCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=iwn5Ah4qOD7VhEaIkb45XZhgy9cDsTbjMumGTOsf49o=; b=uHzh9lK9YpXJ4b8k0gdukfIpA8M+v6l0X5Q+iTEjDkx2sceonsIhn161u2Cyd/sYqz UkdaV8BTOj9xtMcMd+3ZL+6ROqzyYCFascGlezba2bQvgASBoXO17sjzD3CQVqJO9rga VMq6+mcYIQTsRbLU/QV84hV5AeBNqO3Uw3763TWyJfsVoXsHNCUZ8wfGnI+d4sRfJy20 03ytuUShwVaKEyl0heVVqbHguF5c2yTofKLHiM/UL8hbWiUS3Fn6lOPdrC+AJQSKyYZv kos3utvEPhKWnyHPPfctsRXPHz7HNl1INbxRV7ssffnxBc6RNtNYZZda2pMKA77GwT4M WyLg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si12961255pgk.402.2019.03.14.11.41.49; Thu, 14 Mar 2019 11:42:05 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727836AbfCNSi4 (ORCPT + 99 others); Thu, 14 Mar 2019 14:38:56 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51774 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727814AbfCNSi4 (ORCPT ); Thu, 14 Mar 2019 14:38:56 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2EITUEK065938 for ; Thu, 14 Mar 2019 14:38:55 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2r7u1fc4d2-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Mar 2019 14:38:54 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 14 Mar 2019 18:38:52 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 14 Mar 2019 18:38:50 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x2EIcnOb34406578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Mar 2019 18:38:49 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 508555204E; Thu, 14 Mar 2019 18:38:49 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.108.186]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id A3BB552052; Thu, 14 Mar 2019 18:38:48 +0000 (GMT) Subject: Re: [PATCH v3 5/7] selftests/ima: kexec_file_load syscall test From: Mimi Zohar To: Petr Vorel , Dave Young Cc: linux-integrity@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 14 Mar 2019 14:38:37 -0400 In-Reply-To: <20190313101436.GB25643@dell5510> References: <1552304473-3966-1-git-send-email-zohar@linux.ibm.com> <1552304473-3966-6-git-send-email-zohar@linux.ibm.com> <20190312121001.GA18510@dhcp-128-65.nay.redhat.com> <1552409474.24794.63.camel@linux.ibm.com> <20190313101436.GB25643@dell5510> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19031418-4275-0000-0000-0000031B1041 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19031418-4276-0000-0000-0000382983CB Message-Id: <1552588717.8658.5.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-14_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=684 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903140129 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-03-13 at 11:14 +0100, Petr Vorel wrote: > > > So if split kexec tests to another folder is not doable please just > > > ignore the comment. > > > Left in the selftests/ima is a similar test for kernel modules, which > > uses the "common" functions.  So either we wait to move the kexec > > tests or allow them to reach into the ima directory and use the > > ima_common_lib functions. > I guess just load ima_common_lib.sh for now would be good enough. After thinking about it some more, I've decided to remove the kernel module test from this patch set and to simply move everything from the selftests/ima to selftests/kexec. The kernel module test will access scripts/kexec/kexec_common_lib.sh until there is a generic set of functions. Mimi