Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5932356imb; Fri, 8 Mar 2019 05:48:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxfxqoSpmg2rGKUlaWIUZ4ID087L5G7Cjqudtzb6kb4Wjp19vdsIxDCBYOpufb+SwoMWaXX X-Received: by 2002:a63:234c:: with SMTP id u12mr17109558pgm.282.1552052891277; Fri, 08 Mar 2019 05:48:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552052891; cv=none; d=google.com; s=arc-20160816; b=zuXqWHpUoFHaQ3XBdapWVshW3/nWOiVVO/dfMNNM9cWI4fjs/36IZvIv+BkXGOVf3U 3ULLJXiQFCWyo+XI9kbqmB6R5sQquzYTmOOotann+FJbEjmwOvEG8VbDkE+igtv8TjlB H0sK/q7sHSJpqfIpjsiHx3uxr7YK+IEDxPnWqQhF8Lw7rxz0IhH7N3vSLzEQiCLPTcXB VlneSf9m05l8QM1zgTgNCuaXi/8XxVKU96JAHCPmsMwmjw3wiiSYCb1m+krab1Oa/ZZP in8DQAhx3Gf04qytLJKxPfc400ZVd0BFOP+o8byrIyAAA2vkgmrYX31BMCvU3axPXPs8 IYBw== 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=ITsWw7Aki060HFQjhwoM1qS0E3BBdVTgY+UKbJ7ODPk=; b=Kpoqh4M7z+etDLDzM/4JITa4nKx24sDywheYfT4OQrWceB4HLkzHR88gf3OzmirydS 5TNeaxl7v+0oxOztHBZ0ARCi6oT96AbUrHe+NhzlEU1u0bQHrF4u590C+iIv3Ee9MtXo gG4twnUcwDOwIdSFElgrNE8XX4cukwJexEFaFjMx51n8a5Yfn67HUyCYIQ3xWErGwBhB rV9cMsxfLvoT3H030zEaPB6fF2ZQLyMdkvhuP/KyPaKIZ0d8vFg7jpXwU7v1UGACvasS AuKF/+LN9G7hUpotpKz2wXPMX4/Qj4PnTWmVSXGTPiLM1PBI/a7m8RWUjsJfX4Ine8+x Oe8w== 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 134si7380127pfu.71.2019.03.08.05.47.55; Fri, 08 Mar 2019 05:48:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbfCHNqD (ORCPT + 99 others); Fri, 8 Mar 2019 08:46:03 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54828 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726623AbfCHNqD (ORCPT ); Fri, 8 Mar 2019 08:46:03 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x28Dh1Op102013 for ; Fri, 8 Mar 2019 08:46:02 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2r3s361gvg-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 08 Mar 2019 08:46:02 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 8 Mar 2019 13:46:00 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 8 Mar 2019 13:45:56 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x28Djtb552232340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 8 Mar 2019 13:45:55 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8F8AD52050; Fri, 8 Mar 2019 13:45:55 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.93.116]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id B2D9C5204F; Fri, 8 Mar 2019 13:45:54 +0000 (GMT) Subject: Re: [PATCH 2/3] scripts/ima: define a set of common functions From: Mimi Zohar To: Dave Young Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, David Howells , Eric Biederman Date: Fri, 08 Mar 2019 08:45:44 -0500 In-Reply-To: <20190308024450.GC7223@dhcp-128-65.nay.redhat.com> References: <1548960936-7800-1-git-send-email-zohar@linux.ibm.com> <1548960936-7800-3-git-send-email-zohar@linux.ibm.com> <20190228134146.GA7528@dhcp-128-65.nay.redhat.com> <1551366343.10911.173.camel@linux.ibm.com> <20190308024450.GC7223@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: 7bit X-TM-AS-GCONF: 00 x-cbid: 19030813-0028-0000-0000-00000351A64D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19030813-0029-0000-0000-000024101CA0 Message-Id: <1552052744.4134.26.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-08_12:,, 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=592 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903080096 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-03-08 at 10:44 +0800, Dave Young wrote: > Hi Mimi, > > Still did not get change to have a look at V2, but seems you missed the > last chunk of comments about the secure boot mode in previous reply? > > I just copy it hear: > ''' > Do you want to get the Secureboot status here? > I got some advice from Peter Jones previously, thus we have below > in our kdump scripts: > https://src.fedoraproject.org/cgit/rpms/kexec-tools.git/tree/kdump-lib.sh > > See the function is_secure_boot_enforced(), probably you can refer to > that function and check setup mode as well. > ''' Thank you for the pointer to the kdump scripts and reminder. Mimi