From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F57A3C0087; Thu, 15 Jan 2026 18:16:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500964; cv=none; b=gtnZF6UhhY/yJxiawoHoM2/OmsES4y156VqQotQi+sF03EKdt/hbgeVfobcItCTLRVZERr8fVMbnAq94KCgxLtU5Ibcs4xaFjZqbzVeeOME6Wrc8VYeTaezoJhskkuMzZ5CFMCUBQME8/IWa5MRSnMuOXpBkQHesxgLQk0DxzZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500964; c=relaxed/simple; bh=xwR0uUolx+3fZ6HBGehtkXZAYeKDCpBOfveblWPYLCY=; h=Message-ID:Subject:From:To:Cc:In-Reply-To:References:Content-Type: Date:MIME-Version; b=avYsY6FUSZTAjlJN0hKjAx4pHG78atMH+u8Z7oWwwzt5DP4xEJ0ALQShVaO7xdHanNsTBTwHI05NrF1aCG2WBwmrYUuaJhTPKVaSMj9XJ9FJz2Iu/KpjFX8QCStqyCcWY5KzSpH/rfMu7dnF1SvWDNp/YOu7hbsS9Ee1gumOYjo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=lWAwCXWM; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="lWAwCXWM" Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 60F8HOSs005567; Thu, 15 Jan 2026 18:15:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=xwR0uU olx+3fZ6HBGehtkXZAYeKDCpBOfveblWPYLCY=; b=lWAwCXWMmOCsBGN6UzBSMR ybcOACpaeed1JCD+uEYWrrj/HhQoP02g1G9Bq3VDgzGXXIwZO0aRtdx65ntZpqVR lCEmVa9zXo2IGnxkxCNmrJI+WzXo08vUMX0FXCuIevfXQtZNtS7bc0qxG6Cb6im5 3CLSEcCseOd9LV+SlVTfavdqxN3ezN/vACJ1ICNRwR5COVHOQ+jpCUqSGi9p7CYX 7qvR1vR3aeJrTmIsr+JtwT01tnTiCZcJNU4wxg24+XUKxP/gesClb8iTvXLyh8dK 0rF6eHNbMUXm5kZpt1GY7+bcddtG9xuFWgq9dj+R2E1bNeAxb3BApLvTe6Wem2wA == Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4bkc6hfrj1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jan 2026 18:15:03 +0000 (GMT) Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.18.1.12/8.18.0.8) with ESMTP id 60FICmCt026022; Thu, 15 Jan 2026 18:15:02 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4bkc6hfrhv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jan 2026 18:15:02 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 60FGCDdR031255; Thu, 15 Jan 2026 18:15:01 GMT Received: from smtprelay06.dal12v.mail.ibm.com ([172.16.1.8]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4bm3t21bkx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jan 2026 18:15:01 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay06.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 60FIF0CW35979552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Jan 2026 18:15:00 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 94CD85805D; Thu, 15 Jan 2026 18:15:00 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5D3AA58052; Thu, 15 Jan 2026 18:14:58 +0000 (GMT) Received: from li-43857255-d5e6-4659-90f1-fc5cee4750ad.ibm.com (unknown [9.61.157.243]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 15 Jan 2026 18:14:58 +0000 (GMT) Message-ID: Subject: Re: [PATCH 1/3] integrity: Make arch_ima_get_secureboot integrity-wide From: Mimi Zohar To: Coiby Xu , linux-integrity@vger.kernel.org Cc: Heiko Carstens , Roberto Sassu , Catalin Marinas , Will Deacon , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Ard Biesheuvel , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Paul Moore , James Morris , "Serge E. Hallyn" , Jarkko Sakkinen , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , open list , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , "open list:S390 ARCHITECTURE" , "open list:EXTENSIBLE FIRMWARE INTERFACE (EFI)" , "open list:SECURITY SUBSYSTEM" , "open list:KEYS/KEYRINGS_INTEGRITY" In-Reply-To: <20260115004328.194142-2-coxu@redhat.com> References: <20260115004328.194142-1-coxu@redhat.com> <20260115004328.194142-2-coxu@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 15 Jan 2026 13:14:57 -0500 Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 9LcAC3ArNRQrB58_TMRchOmHoH0JFiMR X-Proofpoint-ORIG-GUID: az9-Zrhe7xUtLNs6ch5w8el14qu6fbXh X-Authority-Analysis: v=2.4 cv=TaibdBQh c=1 sm=1 tr=0 ts=69692ea7 cx=c_pps a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VnNF1IyMAAAA:8 a=AiHppB-aAAAA:8 a=20KFwNOVAAAA:8 a=DCsw3ThD87bJHtXWWggA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTE1MDEzNyBTYWx0ZWRfX5KE9JA8QOFaZ QMGylEA2yFrr+LMIlyvxq+GyxaBE3YSEZRlUTijTR0pqOeohHx6Z5o43Ifowv0PwTznHZCpZaps P+PFGgHb3M3BpBoqLiGM4S9nK/XYDMeVW3LCMrGOH2JX3h6+U/KGNp5njojjr7Q5jOJhW0IteP5 zR68vj00G5AtbEN/qAH17efmlAN72EKIlIccQpuQi2Pm5B/93dTxUKju8YVYTIqg3/xbzrzXBhu lfwH3mgTVDAixc1ppBso4WX7HbNHhxS95YmrzP5NklBF9YvXXre8NFtZ+HezYe12UcVOPOOauvU Dn5D4oCftdI4q321imUwVveAClH6XWJlbZxjs33Mt0P0bMvvZK/TUnM3on0dh1lQEIZzNdcHFg9 xyEXOo38GSVGnzoy1P+ayCy4GXnXFhQhyK8CpU9JMm5+WZhbRg21HLmjBdG3WhzjvAuQQmuubGp eZ3hAvJ+zUyl1kCDipQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-15_05,2026-01-15_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 impostorscore=0 bulkscore=0 clxscore=1011 suspectscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2512120000 definitions=main-2601150137 On Thu, 2026-01-15 at 08:43 +0800, Coiby Xu wrote: > EVM and other LSMs need the ability to query the secure boot status of > the system, without directly calling the IMA arch_ima_get_secureboot > function. Refactor the secure boot status check into a general, > integrity-wide function named arch_integrity_get_secureboot. >=20 > Define a new Kconfig option CONFIG_INTEGRITY_SECURE_BOOT, which is > automatically configured by the supported architectures. The existing > IMA_SECURE_AND_OR_TRUSTED_BOOT Kconfig loads the architecture specific > IMA policy based on the refactored secure boot status code. >=20 > Reported-and-suggested-by: Mimi Zohar > Suggested-by: Roberto Sassu > Signed-off-by: Coiby Xu Thanks, Coiby! Reviewed-by: Mimi Zohar