Skip to content

Policy V2: AcceptedTcbStatus evaluation logic only allow "ConfigurationNeeded" #695

@haitaohuang

Description

@haitaohuang

Code Reference: policy.rs lines 774-794
The allow-list for tcbStatusAccepted is only meaningful when "ConfigurationNeeded" is specified in the list. For all other TCB status values (UpToDate, SWHardeningNeeded, OutOfDate, Revoked), the allow-list has no effect because these statuses are already handled by the hardcoded ALWAYS_ALLOW/ALWAYS_DENY rules (lines 731-751).

If "ConfigurationAndSWHardeningNeeded" or "OutOfDateConfigurationNeeded" are specified directly in the allow-list without "ConfigurationNeeded", they will be ignored and the "policy_allow" list will not be populated at line 774. These statuses are only honored when "ConfigurationNeeded" is specified. Direct specification of these variants has no effect.

Is that intended?

Additionally, why we hard code OutOfDate,SWHardeningNeeded as always allowed? should we allow policy to change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions