From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF39C1E5B70 for ; Sat, 22 Aug 2026 00:15:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787357752; cv=none; b=ljpjubwYJOwjyxEqMQ9pP0K5q9/XmSJgLHU9K1YgN6utWdrBDqpPJxXAnORz8VwZLH44PJdoEiGW95X1zvAC3fA027zk4oc+umK6GoiPRjrN/OF341ZxdblxXnZqZ3t1FZgO7LRYlHP37ZWif6HIJtQ9NWIzgDKm/ZbRYcy/P2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787357752; c=relaxed/simple; bh=1TA2bio4/II8+zwpwrc2qqpC4JhhhuR3h2RWPm5OjLw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XcojHLs2WValEe4mmO9ZvT3Qy4jVBH+dsdFrQm5MeS0lE+T6fMLlvfyvxD/031vANUXjqB46E+h3bBTmLYTQPbBU/wNrvIhnTacKqKk6miJwX+G65HMCCEH1y7i16+r8tLo54Xi88ib6fQndiuL7IFayZrNunH1SGUSQUbGxGYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=M4sQVwgp; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M4sQVwgp" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-47fecbb7000so703914f8f.2 for ; Fri, 21 Aug 2026 17:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787357749; x=1787962549; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to :content-type; bh=D4nn8Adu34scllPu0PVpeNyTmxzz7pa6nBrXKjE6XjA=; b=M4sQVwgpKSzyHi/WYFF2MDekN/8zvNv5wwAxNLtWOI6LIFbaw7THm1hJOFouboWre/ tiLQuoLJgtEvi/XWE32fWxHvcjNrN6JXSgOA08HUIMD3gVf1XjDF+kr8UkquC6QBW5/N FJ9Frc9ng5bRDOzeTDlmEvWUZ5GFbmsfGtL8z30X8D3Wg+apdUrgFxT34mSfr9LSVAkv TIHIhieBF9LubggBAi4f96ksUBF0kfh3aNPFbdknS43w2x21XVYvVN2G4P3OjrrV/QdQ W3zUpH1GKk6oJVQbu1l8wYEfDo/mqAANcMmOqRNVzd24gsMN0o707hPlWIYspyalYfrK jEQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787357749; x=1787962549; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=D4nn8Adu34scllPu0PVpeNyTmxzz7pa6nBrXKjE6XjA=; b=JIz4T2WkaScO8kPTErpz5SZaM6KtnpSLu/OO7mi/7xGcvd+oEJ/LPFhS/8BbgeJ8O9 S+F1xGEVKbibRCrLPLNvX0qsszgVHtoJvh5GPc088+30ZGq1kyMrbRyclWlfGsQriNj9 147uVfX6XKeJo+5kWuhchtnYGdNPOlmZa068Pqu3MaT4SgB6OFMQ54XD7hda9dlpJ9fG pE5tr6eNBiHpv/865XtXhVK38IY7lAuuN9PsDcukzC87dPzsnUjTUbk3DsbnAxbcallP xdiy+IsNwEJ8rm33BzpYiTyTSJFh0j15nxYeiLG43u7mSigRWT2bYBkpFnxDkVY7Rlec 0fJg== X-Forwarded-Encrypted: i=1; AHgh+RoPloUP7Hr5hcrmWcNEQzkAXgbDFyX8+g0uaKtwXGdYSjthN2G1moLI/C1gjME7DS8NwhsZCCk907jZt8I=@vger.kernel.org X-Gm-Message-State: AFuF++mitQsaKquj5qgCxvTzfxD4+B8Gz4/jNY/tRN91fULB2GpbJt0M hQDeWErduajlIdflFYijpyH3W49+EUVbye7lqTlyzfDaB885DIJy9VIg X-Gm-Gg: AR+sD10r4YwGwkBZ8fo2SsKUFB9IAO9ezigAPxuL6ceyzzuU/yQKfOO5u5oFazLMbKL 3Y8PzHJhlcTCjps18f50kwnfL4Kd/YTOiiTTAtHA/jgsVYSxdBwqBVEq4LFU9APJMopzeT22JYi LMptWiwqiDx1n+/+rgQ5gP9dghW2/aFgwQR+0ZVTB4uIbBTzDpsiw9/75cO/Bpy0DgBJJ9m5/tK uQkcVAeQjCGjscfwF4wAHaaFWFNj1QL8RfqN28+dX+prxWX1ZT2Fx20Rk8q/SG2zJjU/lBQdmZr zd1/TllX32TXP3sGfxv00WQG088P4NErQ24sKvNBy7zHs56fG+CPA5GFKPMZG16vI0vvb8ZwuTO KxeudJQX+4byW3fuEJkpw+RPCv03dHWsW065dioxu9M0t3eTi9onrabccNG8HfuD/oL+ZqZs4HK EzrHgjZfPQb6XIXYPEz4bV+bVPC86TzesjNyJCe2UDdWdRgfoLzk8JyEtpb5iuUrMnAlo6VZXv0 lfTwHJFiQmo9mxVAjGKIZfMarPVXlCB92xq6vix0+/IAFncpFYP X-Received: by 2002:a05:6000:601:b0:482:a8b1:aa6d with SMTP id ffacd0b85a97d-482c81bd354mr1785152f8f.10.1787357748724; Fri, 21 Aug 2026 17:15:48 -0700 (PDT) Received: from nixos-office (195-23-151-163.net.novis.pt. [195.23.151.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-482c9b855cdsm445514f8f.16.2026.08.21.17.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2026 17:15:48 -0700 (PDT) Sender: Julian Braha From: Julian Braha To: zohar@linux.ibm.com, roberto.sassu@huawei.com, dmitry.kasatkin@gmail.com, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com Cc: eric.snowberg@oracle.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Julian Braha Subject: [PATCH] ima: clean up IMA_MEASURE_PCR_IDX in Kconfig Date: Sat, 22 Aug 2026 01:15:45 +0100 Message-ID: <20260822001545.354195-1-julianbraha@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The IMA_MEASURE_PCR_IDX option is not visible for users to set, so it always uses its default, 10. This means that the 'range 8 14' is dead code, and the "If unsure, use the default 10" in the help text is misleading because the user *has no other choice*. During the first patch submission to add this option in 2008 [1], the submitter originally gave this option a prompt: "PCR for Aggregate (8 <= Index <= 14)" then later removed it in the revision, without adjusting the rest of the option accordingly [2]. Let's clean up this of this IMA_MEASURE_PCR_IDX config option to be consistent with its current, non-visible state. This dead range was found by kconfirm, a static analysis tool for Kconfig. Signed-off-by: Julian Braha --- security/integrity/ima/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig index b3a9f86809b0..8a67bc1faa4c 100644 --- a/security/integrity/ima/Kconfig +++ b/security/integrity/ima/Kconfig @@ -46,12 +46,11 @@ config IMA_KEXEC config IMA_MEASURE_PCR_IDX int - range 8 14 default 10 help IMA_MEASURE_PCR_IDX determines the TPM PCR register index that IMA uses to maintain the integrity aggregate of the - measurement list. If unsure, use the default 10. + measurement list. config IMA_LSM_RULES bool -- 2.55.0