[PATCH v5 07/12] KEYS: trusted: TEE: Disable sysfs bind attributes

Jarkko Sakkinen jarkko at kernel.org
Mon Nov 9 15:16:11 UTC 2026


On Mon, Nov 09, 2026 at 12:57:49PM +0530, Sumit Garg wrote:
> On Mon, 09 Nov 2026 at 00:27:13 +0200, Jarkko Sakkinen wrote:
> > 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.
> > 
> > Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
> > ---
> > security/keys/trusted-keys/trusted_tee.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> 
> Sounds reasonable to me, FWIW:
> 
> Reviewed-by: Sumit Garg <sumit.garg at oss.qualcomm.com>

Thank you (for both).

Br, Jarkko



More information about the Linux-security-module-archive mailing list