Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2247463ybg; Sat, 19 Oct 2019 11:09:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvpYao4OnJxkghmIiDMux3mu28z7U2muIh7OIkFzp727mRLaVMT4TggxtUpAeiYDZUo2EQ X-Received: by 2002:a50:fa42:: with SMTP id c2mr2698016edq.112.1571508560955; Sat, 19 Oct 2019 11:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571508560; cv=none; d=google.com; s=arc-20160816; b=tyE6AezNhA8rgCWSwnoGMsoLKNN7liIn5BOG4BbtADMn5xVujJfxbKX9bmDaUywWRH IH8TtgWdkoO5S2cSohDJAlIurSlsVKNJp1JdatIv/0j9Ie1mnbP/cRAT2Zkmq2o3dUEq /emOSyH7ddmCmAbqBHTGJ8ZR6/YDwAyFanHa1Ujmt433cxJ6EvM4Ccdabu0ds95DsJFj 5XDLNfF9EkPhaX6LutiD6g8Hd0C5VdaGArQjC9bXOTwHD9jXQaOu5b2LV19eaRfVkApB qIUO2wQiFAkrX3DVYjWUUYGXU8ZlZwiB0kXmt0VaFl5hSzq7OweFlFgNgvqL6thCL1Jp DsYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=trZFkT1sjfSO/1LnjWZQuXU+Ez7jxs+aD59oavyO7EE=; b=sZcX1sRoTEHJoPHGnhQH4/2WPRHujl3szbGes+fZJsP80c7yz9KyZNABdgXQgFHo+s zLwaNh3WV/dSTEq6yvNic8x8GjYLtcqX61yOn286Ar3smaljTsRo9i+D5xG/QZbbe2yL RgNgoAsEW3kcFP0whSOf2KjSQQJGbeEHI/ZbiNtf3VJ+pO//80lXlmvEqYNrNCTJHvM7 bIzom21RZgoz1IdMm8RSB45X1tHMIZwFnACsxHjiq0DfGqr/QjXZferoQ/Bq6EgkatQU nQ3ocR87km5I08KcPmYchcVem0D8CLRMiIcOyT7QE6d6LciFlhpRbDh+5N1m6Q6AQEFZ /0DQ== 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 np3si5628101ejb.384.2019.10.19.11.08.57; Sat, 19 Oct 2019 11:09:20 -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 S1726410AbfJSSHM (ORCPT + 99 others); Sat, 19 Oct 2019 14:07:12 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:6454 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726389AbfJSSHL (ORCPT ); Sat, 19 Oct 2019 14:07:11 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9JI6bcr055573 for ; Sat, 19 Oct 2019 14:07:10 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vqx4qv2rk-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 19 Oct 2019 14:07:09 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 19 Oct 2019 19:07:07 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) 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) Sat, 19 Oct 2019 19:07:02 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9JI716159637872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 19 Oct 2019 18:07:01 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 115125204F; Sat, 19 Oct 2019 18:07:01 +0000 (GMT) Received: from swastik.ibm.com (unknown [9.85.146.216]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 4F65752050; Sat, 19 Oct 2019 18:06:58 +0000 (GMT) From: Nayna Jain To: linuxppc-dev@ozlabs.org, linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Ard Biesheuvel , Jeremy Kerr , Matthew Garret , Mimi Zohar , Greg Kroah-Hartman , Claudio Carvalho , George Wilson , Elaine Palmer , Eric Ricther , "Oliver O'Halloran" , Nayna Jain , Prakhar Srivastava , Lakshmi Ramasubramanian Subject: [PATCH v8 8/8] powerpc/ima: update ima arch policy to check for blacklist Date: Sat, 19 Oct 2019 14:06:17 -0400 X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1571508377-23603-1-git-send-email-nayna@linux.ibm.com> References: <1571508377-23603-1-git-send-email-nayna@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19101918-0028-0000-0000-000003AC008E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19101918-0029-0000-0000-0000246E23FA Message-Id: <1571508377-23603-9-git-send-email-nayna@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-19_04:,, 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-1908290000 definitions=main-1910190171 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch updates the arch-specific policies for PowerNV system to make sure that the binary hash is not blacklisted. Signed-off-by: Nayna Jain Reviewed-by: Mimi Zohar --- arch/powerpc/kernel/ima_arch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/ima_arch.c b/arch/powerpc/kernel/ima_arch.c index 710872ea8f35..98f3f8d9f9e4 100644 --- a/arch/powerpc/kernel/ima_arch.c +++ b/arch/powerpc/kernel/ima_arch.c @@ -19,9 +19,9 @@ bool arch_ima_get_secureboot(void) * to be stored as an xattr or as an appended signature. */ static const char *const secure_rules[] = { - "appraise func=KEXEC_KERNEL_CHECK appraise_type=imasig|modsig", + "appraise func=KEXEC_KERNEL_CHECK appraise_flag=check_blacklist appraise_type=imasig|modsig", #ifndef CONFIG_MODULE_SIG_FORCE - "appraise func=MODULE_CHECK appraise_type=imasig|modsig", + "appraise func=MODULE_CHECK appraise_flag=check_blacklist appraise_type=imasig|modsig", #endif NULL }; @@ -45,9 +45,9 @@ static const char *const trusted_rules[] = { static const char *const secure_and_trusted_rules[] = { "measure func=KEXEC_KERNEL_CHECK template=ima-modsig", "measure func=MODULE_CHECK template=ima-modsig", - "appraise func=KEXEC_KERNEL_CHECK appraise_type=imasig|modsig", + "appraise func=KEXEC_KERNEL_CHECK appraise_flag=check_blacklist appraise_type=imasig|modsig", #ifndef CONFIG_MODULE_SIG_FORCE - "appraise func=MODULE_CHECK appraise_type=imasig|modsig", + "appraise func=MODULE_CHECK appraise_flag=check_blacklist appraise_type=imasig|modsig", #endif NULL }; -- 2.20.1