Article View: linux.kernel.netdev
Article #14877[PATCH v6 08/13] KEYS: trusted: TEE: Disable sysfs bind attributes
From: Jarkko Sakkinen
Date: Thu, 12 Nov 2026 04:02
Date: Thu, 12 Nov 2026 04:02
27 lines
9716 bytes
9716 bytes
Suppress sysfs bind and unbind attributes on trusted_key_driver so that
userspace cannot unbind the driver and unregister key_type_trusted while
the trusted module remains loaded.
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
---
security/keys/trusted-keys/trusted_tee.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/security/keys/trusted-keys/trusted_tee.c b/security/keys/trusted-keys/trusted_tee.c
index ad9c7baddcef..87ea549f7f0b 100644
--- a/security/keys/trusted-keys/trusted_tee.c
+++ b/security/keys/trusted-keys/trusted_tee.c
@@ -307,7 +307,8 @@ static struct tee_client_driver trusted_key_driver = {
.remove = trusted_key_remove,
.id_table = trusted_key_id_table,
.driver = {
- .name = DRIVER_NAME,
+ .name = DRIVER_NAME,
+ .suppress_bind_attrs = true,
},
};
--
2.47.3
Technical Details
Message-ID:
<20261112040242.247168-9-jarkko@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361494-linux-kernel-netdev=dewy.ruReferences:
<20261112040242.247168-1-jarkko@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361494-linux-kernel-netdev=dewy.ru From: jarkko@kernel.org (Jarkko Sakkinen) Newsgroups: linux.kernel.netdev Subject: [PATCH v6 08/13] KEYS: trusted: TEE: Disable sysfs bind attributes Date: Thu, 12 Nov 2026 06:02:37 +0200 Organization: Usenet Network Message-ID: <20261112040242.247168-9-jarkko@kernel.org> References: <20261112040242.247168-1-jarkko@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1005028"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:34cUfIJfM60YXCG7Gp37Yl2YwZo= sha256:PbQWg598p5oOXn5hlVcYN6EsZ+YUG0iuRlZEzPiEpjA= sha1:D4OjvWdLfymLUYU/9AmxF5iQDrw= sha256:0fAV9c6Qh7XUyrj3iDI1I9c2MI0+GjaGNwNAdxjnmJU= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 03AD01140F1; Thu, 12 Nov 2026 07:06:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hONQCprAcil3; Thu, 12 Nov 2026 07:06:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-361494-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 99D5C1140EC; Thu, 12 Nov 2026 07:06:32 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id F195339046; Thu, 12 Nov 2026 04:04:42 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794456199; b=xPW0jvbSsTgrxPF22t2qfKtvzdXlcavMHcRrYNae7ps/7qI3fn8H94q0Gui7GadgMZXs iQfQFT8w/f0QCNNdI2H4ysI0BCAG/66dY343g+FyucqOPQT/2WkqJnrRBc0q1PG3+xVhL H6U+vVYR88Vl+S+P38wcXvgYCQA4h8MNw97Tfw6KscTP4BIHzgT8SWG7VKZphHQPowMcc JkNf+e9IYK+iQhprFHDBYFDlAH5rQLe+aVbmWJe3TDu6rkCEY1dzqFYrrELTMJvrZd9EC nId2XSqbLhMeQQf4AiWz28IeGJXqJl5o3OZ/Hpk0jjC4nOkHO4EJ7vpHkag8Mthx6lA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794456199; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding; bh=vAmBbl7y3+0vszpC7NISqKzYEAyqcXpf8J2UpgCfaS4=; b=bqxNn8kNE2LWn7BZ9fbyQgmOAof+OVjFnNd3uK5fuRbjoWc451xPUV+xAz8iiZSPBTKo vC1EnUlPxPU5Ni5rdIYWPVRkKq8H9KH1j6eFTAHnn2HQnA3M1c/w6VKGKJyHUrih98L12 ThKkIWR1msVnQIlQ63nUZ9tqcinxkAG3LxSzB0eFnsRc1YHuhuupYo9gp7JfeSre3hwLJ Qbf/HCoONoHrYVvERVJM2H2+thdr3tFNtf9jXDxAhgtkP3gL49Kd4UH5NCm3dycOCgCCD j49GngeREzs19FpP5+RmTk4Yq7WhmSP4kwCYRrb42i+GiZh574jlihgoc4XMzJ9i7fA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BQLnhOyc; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD3EF606A33E; Thu, 12 Nov 2026 04:03:19 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BQLnhOyc X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794456199; b=Ccq+gyPyEjbdQKtvLj+8qGciAX8rcBiM4f/8dQ6M/b2vbuU7ADKrk36D9A/oGmnOQ22X 634QNilsf1rsknMOk66M9HAgITjTsDSMq6axzAAbU49RjKNKYJgtYa+Ax74L3MavsmBIE xqtK+vTtkq4833caRzFvii3/IApqervcGtLU+Cz9HAn3JtkEcHOe9GlFm9adrZ2se8zcP XfR9QW7CfyQuVlysW6mkhyG8TB8h4WB+39BGpRlP7hvGmBObma91HJ9C3Cli3g7kpOItI p8xTh2SrWua6XPeyAssjIZvGyubhE3LfIreOIX0FLzuV4c0b143OObypWaAIlOr/7fA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794456199; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=vAmBbl7y3+0vszpC7NISqKzYEAyqcXpf8J2UpgCfaS4=; b=RX3Py4HOzvCVNCxuUvPRDAqDBjYzPzP5KKiYnLzW8gzNGyU2KJLhSj5AIk7IxWGA1YDY s32EpdN8igk7hWfqMhe5n3tCL9TmFr7527Q5MDyM5me35RKwE8IxKb9u+ulJGq2LglX8r GtIzp6DgchonBbO0WgEM9/tqm6jhu7yvMulZEVW1aa6lkcXsMHFS8DHQdKDnSlsBwGwDY imyrTDG3BNPYdOzuQObKUp0g8WjUJmWoMqe+B+ikNhNq4M4LN/vLAl8icVLKisbUjpk2x mlQ+Z5rmC2cQExPJTn8anj40+jn/vJITxeuCWc9mrphfd02yLUFFaRdPHpfxFOD4fUQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BQLnhOyc; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id EB30060A5BEB; Thu, 12 Nov 2026 04:03:18 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id D7DB01F00A05; Thu, 12 Nov 2026 04:03:17 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794456198; bh=vAmBbl7y3+0vszpC7NISqKzYEAyqcXpf8J2UpgCfaS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BQLnhOycQhF7tDbiFeh2T7Wry+wOBuzza3/3y86KSqOFPmZhYDfFSSxOEplDDs4eA 0t+bvoCdhkvxyMqzC9g7svnN8QXOIVHuMBgyYzvfRu0Sx7NhVaUzGpCOFBPg9IXAfK GRAwwHMXCmzY+6UT2dim6yMiH5Za1ukCfyRFvOQwIu7b3W1mAuryDcb8Dg8MI0gKui J1wQt0z9mQ+29PcZXEsJfPOHBQcusJCQcbj4fijZUrXL0yQQb5ygpkaGA3QMKoo/oj oSX+Tg/TdaAzObKCn3Sxwbwt30fYU5PNQVZKw+StxpvjNtjKklt85CJbqxnO4I5CBP autlx9MYAIqyQ== X-Cc: Jarkko Sakkinen <jarkko@kernel.org>, keyrings@vger.kernel.org, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-s390@vger.kernel.org, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, Alexander Gordeev <agordeev@linux.ibm.com>, Anna Schumaker <anna@kernel.org>, Bharath SM <bharathsm@microsoft.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, "David S. Miller" <davem@davemloft.net>, Eric Biggers <ebiggers@kernel.org>, Eric Dumazet <edumazet@kernel.org>, Heiko Carstens <hca@linux.ibm.com>, Jakub Kicinski <kuba@kernel.org>, James Bottomley <James.Bottomley@HansenPartnership.com>, James Morris <jmorris@namei.org>, Marc Dionne <marc.dionne@auristor.com>, Mimi Zohar <zohar@linux.ibm.com>, Namjae Jeon <linkinjeon@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Paul Moore <paul@paul-moore.com>, Paulo Alcantara <pc@manguebit.org>, Ronnie Sahlberg <ronniesahlberg@gmail.com>, "Serge E. Hallyn" <serge@hallyn.com>, Shyam Prasad N <sprasad@microsoft.com>, Simon Horman <horms@kernel.org>, Sumit Garg <sumit.garg@kernel.org>, Sven Schnelle <svens@linux.ibm.com>, Tom Talpey <tom@talpey.com>, Trond Myklebust <trondmy@kernel.org>, Vasily Gorbik <gor@linux.ibm.com>, Sumit Garg <sumit.garg@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 X-In-Reply-To: <20261112040242.247168-1-jarkko@kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list