Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TDX_03 identity and sync policy data from backend server #267

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions config/policy_pre_production_fmspc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,59 @@
},
"fmspc": "10806F040000"
},
{
"Platform": {
"TcbInfo": {
"pcesvn": {
"operation": "greater-or-equal",
"reference": 0
},
"sgxtcbcomponents": {
"operation": "array-greater-or-equal",
"reference": [
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
"tdxtcbcomponents": {
"operation": "array-greater-or-equal",
"reference": [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
}
},
"fmspc": "10D06D000000"
},
{
"Platform": {
"TcbInfo": {
Expand Down Expand Up @@ -1215,6 +1268,28 @@
}
}
},
{
"TDXModule": {
"TDXModule_Identity": {
"ATTRIBUTES": {
"operation": "equal",
"reference": "0000000000000000"
},
"MRSIGNERSEAM": {
"operation": "equal",
"reference": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
},
"TDXModuleMajorVersion": {
"operation": "equal",
"reference": 3
},
"TDXModuleSVN": {
"operation": "equal",
"reference": 0
}
}
}
},
{
"TDXModule": {
"TDXModule_Identity": {
Expand Down
65 changes: 59 additions & 6 deletions config/policy_production_fmspc.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@
"sgxtcbcomponents": {
"operation": "array-greater-or-equal",
"reference": [
1,
1,
2,
2,
2,
2,
3,
Expand All @@ -193,7 +193,7 @@
"reference": [
4,
0,
1,
2,
0,
0,
0,
Expand Down Expand Up @@ -372,6 +372,59 @@
},
"fmspc": "40A06F000000"
},
{
"Platform": {
"TcbInfo": {
"pcesvn": {
"operation": "greater-or-equal",
"reference": 13
},
"sgxtcbcomponents": {
"operation": "array-greater-or-equal",
"reference": [
2,
2,
2,
2,
2,
255,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0
]
},
"tdxtcbcomponents": {
"operation": "array-greater-or-equal",
"reference": [
3,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
}
},
"fmspc": "60A06F000000"
},
{
"Platform": {
"TcbInfo": {
Expand Down Expand Up @@ -753,8 +806,8 @@
"sgxtcbcomponents": {
"operation": "array-greater-or-equal",
"reference": [
1,
1,
2,
2,
2,
2,
3,
Expand All @@ -776,7 +829,7 @@
"reference": [
4,
0,
1,
2,
0,
0,
0,
Expand Down
1 change: 1 addition & 0 deletions tools/migtd-policy-generator/src/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ impl TdxModulePolicy {
match id {
"TDX_01" => 1,
"TDX_02" => 2,
"TDX_03" => 3,
_ => {
panic!("Unexpected TDX Module ID");
}
Expand Down
Loading