Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4301318img; Tue, 26 Mar 2019 06:59:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyn1N4vJUihDA4jJdlk4OXpzNh6geKW+mCkOlVzWGqBH6F/0ELrH6UCTDFuRVP5ti/2tkf+ X-Received: by 2002:a17:902:2f:: with SMTP id 44mr31363490pla.139.1553608766573; Tue, 26 Mar 2019 06:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553608766; cv=none; d=google.com; s=arc-20160816; b=E/NuJSPMQly7lq37LR+exqjdLby3XbI+JIyYP3kl3sc9P5GcJC/gyvu+X0TG/1r/Jh WREsVPUddROOZSLhpgqUHRU1Uls50b8zIzJB/AoBMQKTCz/qhjccF9FI02C/I9mnuip0 r1Y9ECG9QfIa6nSxgl5CuJ1KrXbCqCRlsqGOp56hUmlhuJVKUenORj3AH6u7lXkYq8Wj uUvAH+xvWhm3wqVZHNB+2FRIMzXRUjyMkcNk6Ikr2zzW6LKE62gS8gTytPdK++8L3cY0 LXNt7XtaUV2l5rxiviC9BaXJSarkwv6/ZbrnqOwcdOIMGd1D2T7SSWjrYF5xeztPVxrh Z8aQ== 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=O8qdW9peZGXPM6RJIlqpAa4gip9S8tykqHedKZyDLcw=; b=V/nyikwCFQNgGsTQzqXf98rAoGUz5ashdMAqE79HCqpBDdm4T62F6dJ6a6sUYIrR2u tU/dtELUX94uHX+9QXqBVi7YBTNHQoENJnU8ru1QxwVZqG2LDjTun3Emibqq6Cu7u8vp +bcHGAu6JKW0P9/dORFstq2poel6wuhUt2UxoZoEq6TX0i7IYIUalFABANWq6Um6YIRt NOcPUPkg+1ZqlefQAUbnO42GCYBrq5AcZItz6QVhRmv8UaAxWT1S4WwR41z1Xb+Hp9SV lVs5EzYH9SLZ4EyLL9S6XQo+Ht4op+A7c0gCSGY4JCYzXkLppLXbrk7vmVdGCtx+5wre sEew== 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 j71si16423245pfc.280.2019.03.26.06.59.11; Tue, 26 Mar 2019 06:59:26 -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 S1731731AbfCZN5K (ORCPT + 99 others); Tue, 26 Mar 2019 09:57:10 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39480 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbfCZN5J (ORCPT ); Tue, 26 Mar 2019 09:57:09 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2QDs9H0045259 for ; Tue, 26 Mar 2019 09:57:08 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2rfn46rv8k-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 26 Mar 2019 09:57:07 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 26 Mar 2019 13:57:05 -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) Tue, 26 Mar 2019 13:57:03 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x2QDv2sa18546860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Mar 2019 13:57:02 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5AD65A405C; Tue, 26 Mar 2019 13:57:02 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 05457A405B; Tue, 26 Mar 2019 13:57:01 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.109.68]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 26 Mar 2019 13:57:00 +0000 (GMT) Subject: Re: [PATCH v4a 1/2] selftests/kexec: make tests independent of IMA being enabled From: Mimi Zohar To: Dave Young Cc: linux-integrity@vger.kernel.org, linux-kselftest@vger.kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Petr Vorel , Matthew Garrett Date: Tue, 26 Mar 2019 09:56:50 -0400 In-Reply-To: <20190326074942.GA19708@dhcp-128-65.nay.redhat.com> References: <1553283351-6310-1-git-send-email-zohar@linux.ibm.com> <20190325080935.GA12497@dhcp-128-65.nay.redhat.com> <1553546236.5561.7.camel@linux.ibm.com> <20190326074942.GA19708@dhcp-128-65.nay.redhat.com> 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: 19032613-4275-0000-0000-0000031F749D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19032613-4276-0000-0000-0000382E0B3E Message-Id: <1553608610.3960.37.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-26_10:,, 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903260098 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-03-26 at 15:49 +0800, Dave Young wrote: > On 03/25/19 at 04:37pm, Mimi Zohar wrote: > > On Mon, 2019-03-25 at 16:09 +0800, Dave Young wrote: > > > Hi Mimi > > > On 03/22/19 at 03:35pm, Mimi Zohar wrote: > > > > Verify IMA is enabled before failing tests or emitting irrelevant > > > > messages. Also, don't skip the test if signatures are not required. > > > > > > > > Suggested-by: Dave Young > > > > Signed-off-by: Mimi Zohar > > > > --- > > > > Dave, if this patch resolves the outstanding issues, I can fold these > > > > changes into the original patches. (Reminder, these patches will need to > > > > be updated to support the "lockdown" patch set.) > > > > > > They looks good to me, thanks for the update > > > > I've folded the kexec_file_load changes into the kexec_file_load test. > >  The remaining kexec_load change is left as a separate patch, since it > > is dependent on the ikconfig change. > > > > > Feel free to add my reviewed-by, I did some tests although not cover all > > > ima cases. > > > > Thanks!  Is this meant as a general "reviewed-by" for all of the > > patches or just this specific one? > > Thank you for taking this as a separate kexec tests, I think it can > be used for these delta fixes Ok, I just re-posted the patches, folding part of this patch into the kexec_file_load test.  I've added your Reviewed-by on the remaining patch. > > I read all the patches and reviewed the kexec stuff, but I do not > understand all the IMA logic yet although I did some simple ima > tests. I understand.  There are many different aspects to the integrity subsystem.  I'm happy to answer any questions you have. Mimi