Re: [PATCH RFC v2 3/9] attestation: Prepare provider and instance core
From: Jiri Pirko
Date: Thu Dec 03 2026 - 09:12:45 EST
Thu, Dec 03, 2026 at 02:43:44PM +0100, jgg@xxxxxxxxxx wrote:
>On Thu, Dec 03, 2026 at 11:16:43AM +0100, Jiri Pirko wrote:
>> Mon, Nov 30, 2026 at 09:37:38PM +0100, jgg@xxxxxxxxxx wrote:
>> >On Mon, Nov 30, 2026 at 03:19:54PM +0100, Jiri Pirko wrote:
>> >
>> >> After IMA is work will be posted, I'll look at finding the instance
>> >> through the class device instead, so there is one ID and no limit on the
>> >> endpoints of a parent.
>> >
>> >Yeah that makes more sense and more broadly we should have some string
>> >based way to identify the ROT for IMA to use, somehow. I don't know
>> >what that will look like but it can come in a later series.
>>
>> For IMA, I have following identification in mind for now:
>>
>> kernel parameter:
>>
>> ima_attestation=<family>:<mr-name>
>> ima_attestation=<bus>/<dev>:<mr-name>
>
>We probably want an option to select a "pcr policy", which defines
>both a ROT to host them and the way the PCRs should be assigned in the
>system. Overall, in a way that effects all the kernel users and is
>visible to userspace too.
>
>Like tpm-non-drtm and tpm-drtm both specify the ROT and the MR # to
>use.
Okay. That would be even more abstracted out config.
>
>Most liekyl bus/dev is not that useful because we probably won't see
>two ROTs of the same type in real systems.
True. I have it in unlikely case there are multiple devices of the same
family and user would still like to pick (like 2 tpm devices).
>
>In practical cases this would be selecting between FIRME and (firt)
>TPM, as an example on ARM systems.
>
>It probably makes sense to offer a fixed MR option somehow, maybe that
>is defining some policy on the command line instead of subsystem by
>subsystem, I don't know.
>
>Jason