[RFC PATCH 7/9] crypto: caam - add an internal cbc(paes) taking the blob's key modifier

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Nov 18 14:24:48 UTC 2026


> cbc(paes) decapsulates every blob with the fixed key modifier
> "SECURE_KEY", the one trusted keys use for their "pk" keys, and is
> reachable from AF_ALG: a blob made for either can be used through the
> other by whoever holds CAP_NET_ADMIN or CAP_SYS_ADMIN (with AF_ALG's
> default restriction), for whatever operation they choose. A kernel
> user that wants its blobs bound to something of its own, such as the
> metadata of the key they protect, has no way to say so.
> 
> Add a second cbc(paes), cbc-paes-km-caam, flagged CRYPTO_ALG_INTERNAL
> so that only kernel code asking for that flag can allocate it, as the
> DCP's paes is, which trusted keys allocate by driver name with that
> flag; its key names the key modifier to decapsulate with.
> caam_encap_blob() already takes a caller's key modifier, so a kernel
> user can now bind its blobs to a value of its own.
> 
> Its only user is the keycrypt CAAM backend, which is a proposal, and
> so is this.
> 
> 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=7




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