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 217153CFF72; Mon, 20 Apr 2026 21:27:12 +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=1776720433; cv=none; b=E/DPguJv4/cHcrV4gxCyyyLr9QyUQeS88lT4fn/Kxgl5FWIGAlbQBLs85kLLsNZxquprWr6Ff7mdAh8E5Njg4QLiH7h3xWTEgmsaW9yMuOd8PiG3LYsNOAReQGx8YU2+DXULjx0mHpX0kwm5t776ixrhuYNkgT8pQCfUuAtAYcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776720433; c=relaxed/simple; bh=0zA1iY10OAejTHGLKVAyct5fV1I29qtDkgUyjhfh6VI=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YcMpsfcW/zpQcFgqudPMK21UeRnd5s0s1CTNooetRitDNHNb6vhQ6GuVav7NVVT+ufCgK4u/tnNLgu5COX1mcc6/l9jnhM770BwEUj+dlwYup+sX5FhoO/4MHcX2q1MMxdFSN9btc2hAce8HYW50cl6cyYlg5JhvTyvlZpBQAqg= 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=UXT+jLAR; 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="UXT+jLAR" Received: from narnia.corp.microsoft.com (unknown [40.78.12.246]) by linux.microsoft.com (Postfix) with ESMTPSA id D4EBA20B6F1B; Mon, 20 Apr 2026 14:27:10 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D4EBA20B6F1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1776720432; bh=D1OsiZIRk5fwjHT2yiYyh62NPa6JsLWz8+CUIzDsvys=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UXT+jLARCDRCCqTe9hTkzCVGBLlZJnczbTQeLK+bSNnvh5POre+nEbTwZ3N+7XWOM 36nnKoow1zrVwkwAmOVBOuV7KSpI+NVZfYTGkY7CGO9Zxbsx+COHj5E+d1Ljx1opch EVGGodoX05QGzexk6pBV7GU+mHE8DwKwAdQp4yyI= From: Blaise Boscaccy To: "Blaise Boscaccy" , "Jonathan Corbet" , "Paul Moore" , "James Morris" , "Serge E. Hallyn" , =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , =?UTF-8?q?G=C3=BCnther=20Noack?= , "Dr. David Alan Gilbert" , "Andrew Morton" , James.Bottomley@HansenPartnership.com, dhowells@redhat.com, "Fan Wu" , "Ryan Foster" , "Randy Dunlap" , linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, "Song Liu" Subject: [PATCH v5 05/10] lsm: security: Add additional enum values for bpf integrity checks Date: Mon, 20 Apr 2026 14:26:37 -0700 Message-ID: <20260420212653.438685-6-bboscaccy@linux.microsoft.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260420212653.438685-1-bboscaccy@linux.microsoft.com> References: <20260420212653.438685-1-bboscaccy@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit First add a generic LSM_INT_VERDICT_FAULT value to indicate a system failure during checking. Second, add a LSM_INT_VERDICT_UNKNOWNKEY to signal that the payload was signed with a key other than one that exists in the secondary keyring. And finally add an LSM_INT_VERDICT_UNEXPECTED enum value to indicate that a unexpected hash value was encountered at some stage of verification. Signed-off-by: Blaise Boscaccy --- include/linux/security.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/security.h b/include/linux/security.h index b3fd04baa78d0..4b4b8808f67de 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -106,6 +106,9 @@ enum lsm_integrity_verdict { LSM_INT_VERDICT_OK, LSM_INT_VERDICT_UNSIGNED, LSM_INT_VERDICT_PARTIALSIG, + LSM_INT_VERDICT_UNKNOWNKEY, + LSM_INT_VERDICT_UNEXPECTED, + LSM_INT_VERDICT_FAULT, LSM_INT_VERDICT_BADSIG, }; -- 2.53.0