From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4007947DD6A; Wed, 1 Apr 2026 17:35:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775064930; cv=none; b=qhiS0CTvoXF51eENjEPeqxPxkYSEVV1zl2wEyPbrMnn2B8X5acZi8RljokS5WyXNfXYJMNtSZUjkWrpNM+OjmwosvRf1w+ZBZWyvMm843gQIaPd3HmFtAvILzminDlfXcOfJ7o6VpvsIupaWJ6tGgnNNIXQx41oi6Mh3xOhzl4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775064930; c=relaxed/simple; bh=uEdAi/q2w/uICb1811cr1u5dW7GRk4kuE/VIl5aKpJw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jsUazWuh5R2ls0X5sSgNFzAU+Bl43JwGqw9iexHdTP1H9eXrEGadWEXmlrEj7UHhVv73n64eXcVZFxby4P+7QY2LNY3ajcCzqBKxO1usVjvWa/aHHwjS8A2S2oq7XOOMYgWEFMPW+1W603EtrTtkssKh2wDViyiJ+poYA2Qe/ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=LDto73WR; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="LDto73WR" Received: from chenste-Virtual-Machine.mshome.net (unknown [131.107.174.223]) by linux.microsoft.com (Postfix) with ESMTPSA id 71A4E20B712B; Wed, 1 Apr 2026 10:35:27 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 71A4E20B712B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1775064927; bh=R8W+w2KFxnOkxbLBEaZrTMbaD4VNoL/glA1naoWLZIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LDto73WRPO9aqKKXnz3EJIwTQKgbvOmvvGXWEGxox+H2p1UkRatvcqhoB8XywiZHL v2MhjYzePkRB5pZcDLC6Jrd704XXsFgsNNCbUg9sVis9OwT6wRuc6mKRKXsWNFQ0YW DmYyGvMPYqk+OjnZPgwQzd2I3WjG7lu7YGUpITI0= From: steven chen To: linux-integrity@vger.kernel.org Cc: zohar@linux.ibm.com, roberto.sassu@huawei.com, dmitry.kasatkin@gmail.com, eric.snowberg@oracle.com, corbet@lwn.net, serge@hallyn.com, paul@paul-moore.com, jmorris@namei.org, linux-security-module@vger.kernel.org, anirudhve@linux.microsoft.com, chenste@linux.microsoft.com, gregorylumen@linux.microsoft.com, nramas@linux.microsoft.com, sushring@linux.microsoft.com, linux-doc@vger.kernel.org Subject: [PATCH v5 1/3] ima: make ima event log trimming configurable Date: Wed, 1 Apr 2026 10:29:53 -0700 Message-ID: <20260401172956.4581-2-chenste@linux.microsoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260401172956.4581-1-chenste@linux.microsoft.com> References: <20260401172956.4581-1-chenste@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Make ima event log trimming function configurable. Suggested-by: Mimi Zohar Signed-off-by: steven chen --- security/integrity/ima/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig index 976e75f9b9ba..322964ae4772 100644 --- a/security/integrity/ima/Kconfig +++ b/security/integrity/ima/Kconfig @@ -332,4 +332,16 @@ config IMA_KEXEC_EXTRA_MEMORY_KB If set to the default value of 0, an extra half page of memory for those additional measurements will be allocated. +config IMA_LOG_TRIMMING + bool "IMA Event Log Trimming" + default n + help + Say Y here if you want support for IMA Event Log Trimming. + This creates the file /sys/kernel/security/integrity/ima/ima_trim_log. + Userspace + - writes to this file to trigger IMA event log trimming + - reads this file to get number of entried trimming last time + + If unsure, say N. + endif -- 2.43.0