[RFC PATCH 6/9] KEYS: keycrypt: Add the engine tier
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Wed Nov 18 14:17:48 UTC 2026
> Some crypto engines hold a key so that the kernel never reads it once
> sealed, yet run whatever operation the kernel asks of it: the CAAM's
> black keys are of this kind. A key there is better kept than in
> kernel memory, but its use is no more checked than the kernel
> tier's.
>
> Add the engine tier, 15, between kernel and tee, for such backends:
> tier=engine and min-tier=engine choose them, accepted-min-tier=engine
> and KEYCTL_CRYPT_OPEN's accepted_min_tier take them, and
> CONFIG_KEYCRYPT_SYSTEM_TIER_ENGINE makes it the system tier at boot.
> The core warns in the kernel log when a backend registers at it, since
> the protection its name may suggest stops short of the use of the key.
>
> No backend in the kernel declares this tier yet; the keycrypt CAAM
> backend proposed with it does.
>
> Signed-off-by: Rodolfo Giometti <giometti at enneenne.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261118140421.584086-1-giometti@enneenne.com?part=6
More information about the Linux-security-module-archive
mailing list