Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp648991ybi; Fri, 7 Jun 2019 14:25:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtZjE9PFrEQSqN1uxaI7n0R/YgnAIFMI7fMpnZvhqaKm7cyliTxFGxjAdz4ir7JwBHkcmw X-Received: by 2002:a17:90a:ac18:: with SMTP id o24mr8314805pjq.116.1559942737900; Fri, 07 Jun 2019 14:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559942737; cv=none; d=google.com; s=arc-20160816; b=JJW3UeNCEYuHBBIbC4Ii3ciuFOPLodSNgettRWiOj1N4mJyn1P3UYW4QkJsgPHSRRh 6SCPJ850JggKncPa4V/N/qP8LaQYmda4jBbRl25fRQOy0xewcODmG+dr7PWVRN55eDAO Hm6u8klP6lrTwQOM8p5rNNpLXeAR7VarxKEKPqtMrRtpSL8J3ZtYAlRBEglnVjoFqXEG J5Spxtl1Wm/0LL/N1gEJJcoY7fTpTzCTWmQXUC3/f3p6WPdItZSQmFe/O8OhyM+5tsIm SjZEIuzi1bxOPyhG6yV3FhB6rujfJ/sfXza3q7swf7NQonKhtOc0GQL2qgMBla+xzZ/n WTFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=bJ+TlKj7kf5kkWl4LmJhtAIdZzuQ9uLpJWpLXbxitUQ=; b=aJZs1yGpYJzhkfEORzd3Rrz8I6ZUKw3VdlNqiDvVhASht49h/5MyE27mZRjwaXLoYU PMVTv0+SejiPye7z76bJvNAebFM49bAlHTCP4jilvMaH7Bdq8DY6b70te5R1DodbfQc1 ZJ2uiyHQPx843TSBaxpL0mhyVtV+09IMRAIKHu29bCiZ1LmI2ku7rbrpBSZmLtQRFRCP gv6wkya9htUimlbMosXkVQ6E0QS+fDGOkiTz14SqCEEUurd1VfFuYR1ahHz0wZAiFlwj itOEK71OdFeGp0dfhAY35mrxB4egCoNlSxCIpOdOBtXJLW2nlLp5JyeAawmCLD55tnxG CMcQ== 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 93si3132878plc.139.2019.06.07.14.25.21; Fri, 07 Jun 2019 14:25:37 -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 S1729291AbfFGTMY (ORCPT + 99 others); Fri, 7 Jun 2019 15:12:24 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:42714 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728727AbfFGTMY (ORCPT ); Fri, 7 Jun 2019 15:12:24 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x57J26ce069745 for ; Fri, 7 Jun 2019 15:12:23 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2syt9wt4da-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 07 Jun 2019 15:12:22 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Jun 2019 20:12:21 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) 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) Fri, 7 Jun 2019 20:12:18 +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 x57JCG9x39321786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 7 Jun 2019 19:12:16 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 666D35204F; Fri, 7 Jun 2019 19:12:16 +0000 (GMT) Received: from swastik.ibm.com (unknown [9.80.199.252]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 6018C52052; Fri, 7 Jun 2019 19:12:15 +0000 (GMT) From: Nayna Jain To: linux-integrity@vger.kernel.org Cc: zohar@linux.ibm.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Nayna Jain , Eric Biederman , Dave Young Subject: [PATCH] x86/ima: fix the Kconfig dependency for IMA_ARCH_POLICY Date: Fri, 7 Jun 2019 15:12:06 -0400 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 19060719-4275-0000-0000-000003405B06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19060719-4276-0000-0000-000038506435 Message-Id: <1559934726-18650-1-git-send-email-nayna@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-07_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=817 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906070127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If enabled, ima arch specific policies always adds the measurements rules, this makes it dependent on CONFIG_IMA. CONFIG_IMA_APPRAISE implicitly takes care of this, however it is needed explicitly for CONFIG_KEXEC_VERIFY_SIG. This patch adds the CONFIG_IMA dependency in combination with CONFIG_KEXEC_VERIFY_SIG for CONFIG_IMA_ARCH_POLICY Fixes: d958083a8f640 (x86/ima: define arch_get_ima_policy() for x86) Signed-off-by: Nayna Jain Cc: Eric Biederman Cc: Dave Young --- security/integrity/ima/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig index a18f8c6d13b5..df65d2d41905 100644 --- a/security/integrity/ima/Kconfig +++ b/security/integrity/ima/Kconfig @@ -159,7 +159,8 @@ config IMA_APPRAISE config IMA_ARCH_POLICY bool "Enable loading an IMA architecture specific policy" - depends on KEXEC_VERIFY_SIG || IMA_APPRAISE && INTEGRITY_ASYMMETRIC_KEYS + depends on (KEXEC_VERIFY_SIG && IMA) || IMA_APPRAISE \ + && INTEGRITY_ASYMMETRIC_KEYS default n help This option enables loading an IMA architecture specific policy -- 2.17.1